Is there a standard/recommended way of handling config info for an application.

My vb.net app needs to know a couple of things, but the biggest is where to
store the log file. I use the app's directory by default, but would like the
option to change that.

Do I use the registry, an ini file, a xml file?

Sorry if I'm beating a dead horse.

Re: Configuration Information? by Sean

Sean
Tue Mar 08 14:55:37 CST 2005

"Iguana Frank" <IguanaFrankSamNA@ifsna.ed> wrote in message
news:D6BAB0D4-E6ED-4EA5-B0CE-958CA287A00A@microsoft.com...
> Is there a standard/recommended way of handling config info for an
> application.
>
> My vb.net app needs to know a couple of things, but the biggest is where
> to
> store the log file. I use the app's directory by default, but would like
> the
> option to change that.
>
> Do I use the registry, an ini file, a xml file?

I generally store an XML file in the SpecialFolders.ApplicationData
directory if it's per-user settings, and in the
SpecialFolders.CommonApplicationData directory.

> Sorry if I'm beating a dead horse.