Is there a way to write into the .config file? In other words treat it
like
a .ini file. (I may be confused on what the exact nature of the .config file
may be.)
The config file is used for starting up conditions and custom changes of the
program without need of recompiling.
For example, you could configure differen splash screens.
Normally this file is not supposed to be written to, it is only intended for
read-only purposes.
The reason for this is that this file might be on e CDROM ro DVD of
protected program files folder.
To save configuration settings, you have to create your own implementation
and should be store in any of these locations "Documents and Settings" which
should be read-write enabled. Not the old style "Program files" folder.
You have 3 locations:
* Locally for your won login account
m_LocalUserConfig=Environment.SpecialFolder.LocalApplicationData;
* Globally for all users on this machine
m_AllUserConfig=Environment.SpecialFolder.CommonApplicationData;
* Roaming profile that keeps the settings if you move to another computer
you get the last saved settings from another computer.
m_RoamingUserConfig=Environment.SpecialFolder.ApplicationData;
I hope this answers your question?