> App.config is generally read only anyways. (right?) And shared by all
> users.
[quoted text clipped - 18 lines]
>> of doing this with C# .NET? Just come up with my own format and
>> manually parse my file?
> http://www.vb2themax.com/ShowContent.aspx?ID=5d8114d9-0e1b-457a-a66a-04c861fac4a5
>
> (Thank m.posseth for link)
I used this approach a long time ago, but gave up after a while. The
problem is that it is re-inventing the wheel, the code essentially loads
an XML file, parses it for data which it then stores in memory. When you
access data you do so through the in-memory collection, when you want to
save values the XML file is written item by item.
It is far simpler to use the XmlSerializer class. The simplest way to do
this is:
1) create an XML class with example data that you want serialized
2) use xsd to create a schema file
3) use xsd to generate a code file from the schema.
the class can then be serialized and deserialized with XmlSerializer.
This does mean that you need to have a fixed schema for the
configuration, but this can be thought of as an advantage. After all,
your code will be written to expect only fixed configuration settings,
and so your code will only work with that version.
>> I've am currently using the approach described here:
>> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnadvnet/html/v
bnet07082003.asp
This is a much better article, in particular the comments about isolated
storage.
Richard

Signature
Fusion Tutorial: http://www.grimes.demon.co.uk/workshops/fusionWS.htm
Security Tutorial:
http://www.grimes.demon.co.uk/workshops/securityWS.htm