On Wed, 14 Dec 2005 15:18:30 -0000, "Richard Grimes"
<ri******@mvps.org> wrote:
Herby wrote: What is a direct .NET equivalent of this?
The config file.
... The application
configuration file has the name of the process with the .config suffix
(eg myapp.exe.config). Configuration files are XML files.
If memory serves, Richard, you wrote a sample program that illustrates
use of .config files. I remember using the built-in functions for
access to them, but couldn't figure out why settings were getting
overwritten. Turned out that Visual Studio was copying over the
modified file. This occurred with your sample code as well.
When run outside the debugger all was well.
Well, Microsoft insists on putting XML *everywhere* and so INI files had
to be junked because they did not contain XML.
Haha! That does seem to be the case sometimes.
I'm at least hoping that registry abuse tapers down. That's probably
the biggest single reason people have to reinstall XP every couple
years. I've seen a spyware checker (Spywareblaster maybe?) that
copied the entire 'favorites' folder into the registry. On some
machines that's 10,000 new registry keys. Most often, registry pigs
don't clean up after themselves either.