Global XML file

Phylum

Well-known member
Joined
Jun 20, 2003
Messages
105
Location
Canada
How would you make a variable that is global to the solution? I know about the config file. The problem is that there are several users using the program and the variable value would be unique to each of them. Is there any way of caching a value like the configurationsettings does?
 
Actually this is for a windows application. What I am trying to do is have a variable or chached xml file that is shared accross projects. The config file is an example of this, but what I need is a user by user based version.
 
Easiest way is to store the config settings in a user defined class and mark it as serialzable (makes reading / writing to a stream very easy).

Then store this in a sub-folder of the users Application Data folder -you can obtain the path to it by environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
 
Back
Top