app.config is translated at build time to <yourappname>.exe.config and is
deposited alongside the built executable.
Anything you put in the appSettings section is automatically read at
startup
and is available with ConfigurationSettings.AppSettings["keyName"]. In
.NET
2.0 there is a ConfigurationManager class that works the same, and
requires a
reference to System.Configuration.
Since this is an Xml document, you can read and write to it just as you
would with any other Xml document. In .NET 2.0 you have new classes that
are
designed for this purpose. A quick check of the Framework documentation
will
reveal all.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
Alberto said:
How can I read and modify information in the xml file app.config?
Thank you very much.