rmmarsh
asked on
Where is the best place to store variables that may or may not be saved (users choice)
I have some program variables in a C# program that may or may not have content. My question is: where is the best place to store those variables, if, in fact, they are to be saved? (user's choice). I have tried the registry which worked fine until someone ran the program on Vista, and that caused the program to crash due to authorization level. I was thinking about Settings, but since I have about 30 of these that *might* be saved, I'm not sure that would be the right choice. The other choice is a table, but then again, if it isn't used, it's just taking up resources.
Any other ideas?
Any other ideas?
If this is something like user preferences, I think the most common location is app.config.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you both; I think I'm going to go with the xml file... the data is not often used and it's a lot simpler to just create an xml file.