This is an example on how to create keys and get their values from an
app.config file
http://www.knowdotnet.com/articles/configfiles.html
However, if you want to edit it, you can't do it programatically, you need
to fire up and editor and do it there.
Cor and Codemonkey are correct and an easy way to do what you want is either
the registry or an XML File. As easy as it is to create serializable
objects in .NET, particulalry with the SOAP formatter for instance, or just
adding values to a DataSet and using the .WriteXML and .ReadXML methods
respectively.
Dan Fergus and Larry Roof wrote a book The Definitive Guide to the Compact
Framework which has a great example of it (the CF has not native access to
the registry and doesn't support .config files)...
HTH,
Bill
"dale" <an*******@discussions.microsoft.com> wrote in message
news:09****************************@phx.gbl...
I am trying store and update some variables/options that
the user can set and that need to be saved and used each
time the program is run. I am thinking that they should
be stored in the app.config file and also changed there
when the user modifies these options.
My question is does this sound right and is there a
variable that will give me the path to the app.config
file?
Thanks in advance.