[Mono-list] Re: What's the easiest way to...
Robert Jordan
robertj at gmx.net
Fri Dec 2 10:58:44 EST 2005
Robert Jordan wrote:
> Salvatore,
>
>
>> ...store application settings ?
>
>
> string folder =
> Environment.GetFolderPath(Environment.SpecialFolder.Personal);
>
>
> If you want to differenciate between data suitable for roaming
> and local machine data:
>
> Environment.SpecialFolder.ApplicationData
> Environment.SpecialFolder.LocalApplicationData
Ups! You didn't ask *where* to store the preferences.
About the "how":
- static application settings can be stored in the
so called "app.confg". This a XML file named after
the executable: foo.exe.config.
See http://tinyurl.com/dbwfe
- user preferences can be stored to a file into a folder I
mentioned above. You may use (XML) serialization for that:
http://tinyurl.com/a26bo
http://www.15seconds.com/issue/020903.htm
Robert
More information about the Mono-list
mailing list