I think the best way would be for you to use Xml Serialization to write an xml file with all your settings. Heres an example:
Make a class with all your options in it:
public class Options
{
public string opt1;
public int opt2;
public string opt3;
}
Then create some functions that will serialize and deserialize the info:
public static void Serialize(Options Prefs)
{
//create xml serializer
XmlSerializer Serializer = new XmlSerializer(typeof(Options));
//create writer
StreamWriter Writer = new StreamWriter(Path);
//serialize Data in the options class with the writer
Serializer.Serialize(Writer, Prefs);
//close the writer
Writer.Close();
}
public static Options Deserialize()
{
//create xml serializer
XmlSerializer Serializer = new XmlSerializer(typeof(Options));
//create reader
StreamReader Reader = new StreamReader(Path);
//deserialize the xml and load it into the Prefs variable
Options Prefs = (Options)Serializer.Deserialize(Reader);
//close the reader
Reader.Close();
//return the Options
return Prefs;
}
Tell me if you need me to explain a little better.
Dan