"feng" <an*******@discussions.microsoft.com> wrote in message
news:df****************************@phx.gbl...
.Net's .config file is supposed to replace the .ini files.
That's all fine if all I need is to read from it. But what
if I need both read and write? With .ini file, I can do
that very easily with standard API. But is there API for
writing the .config files? I know we can treat .config
file as a regular XML file and using XML API to write to
it, but is there API for writing to .config file just like
we read from it?
Thanks.
feng
It isn't the best recommended practice to write to the App.config file, but,
check tomorrow morning on my website
http://www.tiberiansun.us/projects and
I will post my DLL up there that does exactly that. My suggestion, write
code to make your own XML file that replaces the traditional INI file. I
have attempted to start one, but just haven't had the time to finish it.
Some say "Use the registry", but I don't like that, I like using the XCopy
Install feature of .NET, just copy the files and run. Anyhew, check about
10am EST for the DLL there.
Sueffel
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
http://www.grisoft.com).
Version: 6.0.580 / Virus Database: 367 - Release Date: 2/6/2004