471,356 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

Storing setting

Gav
Hi all,

I have been looking into writing values to the config file. I have just
read that it is not a very good idea to do so. Could anyone suggest a good
way to store app settings?

thanks
Gav
Jul 21 '05 #1
2 988
Gav,

Computer settings (form wide etc) registry
Portable user settings: config.file
(However, setting usernames and/or passwords in your config file is the
worst you can do)

An easy way to make a config file is a dataset.

I hope this helps,

Cor
Jul 21 '05 #2
There is one config file for your app. Each user of your app on a single
computer will need their own settings. Therefore, it is unwise to store the
settings for any one user in the config file for the entire app.

Create your own XML file in the local user's directory. I believe that
there are libraries already written and available on the web for doing this.

--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
"Gav" <sp**@spam.com> wrote in message
news:OD*************@TK2MSFTNGP09.phx.gbl...
Hi all,

I have been looking into writing values to the config file. I have just
read that it is not a very good idea to do so. Could anyone suggest a good
way to store app settings?

thanks
Gav

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Brian Burgess | last post: by
2 posts views Thread by Chester | last post: by
12 posts views Thread by Alfonso Morra | last post: by
5 posts views Thread by david | last post: by
4 posts views Thread by Heather | last post: by
10 posts views Thread by michael sorens | last post: by
11 posts views Thread by =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.