>I was trying to find an easy way to write in the standard configuration
(like app.config) xml-based files. I found classes that can be used to read
this information (in System.Configuration) like the
ConfigurationSettings.AppSettings property, but I was not able to find
anything to write app settings in these files. Isn't this kind of
"asymmetrical"? Anyone familiar with the reasons of such a lack?
Consider this - in a well managed environment, your apps would
typically reside in the c:\program files area - by default, normal
users do not have permissions to write there. So even if you could
write back settings to the app's config file in the .NET classes, most
likely that would fail for your users since they can't write anything
to the directory where the app resides.
If you need to store user settings, store them into a user directory
or the Isolated Storage area. There are lots of freeware classes out
there that allow you to store user settings in XML or binary format.
Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch