Jump to content

[SOLVED] Is there a way to Uninclude a file, i have previously included


chrisfane

Recommended Posts

i have a number of config files, which the user has a choice to choose which one they want to use. i need to pull a system description for each, which in the past where i only have to work with a single file i have just included and taken the data from there.

 

unfortunalty i then cannot just include the next file, as the value of my $sysname doesnt get overwritten by its new value.  is there a way to uninclude a previously included file ?  alternately i think im going to have a to read the specific value of  " $dbname="system description"; //Automation database description "  from each of my config.conf files.  which i was hoping to avoid, as i havent done a great deal of file handling , apart from reading whole file contents in and out. :-(

 

any help would be most appreciated.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.