Christian,
Well, if you really want to get rudimentary, you could create a
FileStream instance and write it byte by byte.
But I doubt you want to do that.
Usually, the configuration sections have object models that you can
access through the classes in the System.Configuration namespace. You could
try working with these models in code and then persist them to another file
(although because config files are not written to, except for user setting
sections, it might be the case that there is not much support for going from
the config object to XML, only vice versa).
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Christian Muggli" <christian.muggliATgmail.comwrote in message
news:55**********************************@microsof t.com...
can someone explain me how to create a app.config file during runtime? i
see two ways:
- add a skeleton of an app.config file to the exe/dll and extract it
during runtime as a resource and extract
OR
- create a app.config file using xml
is there another way?
thanks
christian