Hey everyone,
Usually when I create a Java application I will use the built-in Preferences class to save user preferences. I believe this saves user information to the registry on Windows, and to other locations on Linux / Mac OS X.
When I need to store a serialised object, I'm forced to store to a file - but that is the only time I generally save settings to a file.
My question - as I'm fairly new to C# development - is if there is something similar to Java's Preferences class in C#. What is the most highly-recommended way to store user preferences? Is it simply to write them to a file, or is there an alternative (that is more invisible to the user).
And if storing to a file is the recommended option - could you please give the name of any classes that you'd recommend I use? With the class name, it should only take me a few minutes to find some code explaining how to use it, so it'd be a good starting point for me. Perhaps some file reader/writer classes, and an XML reader/writer class.
Like I said above, I'd prefer to avoid writing to a file - unless that is the only option available.
Thanks for your time.