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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.