application configuration file

  • Thread starter Thread starter Eric Dreksler
  • Start date Start date
E

Eric Dreksler

Hello all,
I was wondering if it's possible to write to an application config file at
runtime.
I wrote a bit of code to read the file and when I tried to write to it I got
an error, I've been looking through MSDN for any info, but all I get is how
to read the file and no specific statement saying it can't be written to.

Basically, I have the default path for some directories and dbs that the app
needs, and want to be able for the user to just select the new location and
save it back into the .config file, if anything changes on the filesystem.

Thanks In Advance,
Eric Dreksler
 
* "Eric Dreksler said:
Basically, I have the default path for some directories and dbs that the app
needs, and want to be able for the user to just select the new location and
save it back into the .config file, if anything changes on the filesystem.

The config file should not be used to store user preferences.

Configuration Management Application Block
<URL:http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/cmab.asp>

<URL:http://www.palmbytes.de/content/dotnetlibs/optionslib.htm>
 
Back
Top