Configuration Information?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
Iguana Frank said:
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.
 
Any reason why you won't want to use the app's config file itself?
(your-assembly.config) ?
 
It's generally stored in the Program Files directory your application is in,
and normal users do not have Write access to Program Files.
 
Back
Top