Configuration Information?

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.
 
S

Sean Hederman

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.
 
A

Amit Bahree

Any reason why you won't want to use the app's config file itself?
(your-assembly.config) ?
 
S

Sean Hederman

It's generally stored in the Program Files directory your application is in,
and normal users do not have Write access to Program Files.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top