FileStream fs = new FileStream("Answears.dat", FileMode.Create);
Dictionary<string, List<string>> chats = new Dictionary<string, List<string>>();
BinaryFormatter formatter = new BinaryFormatter();
public void Start()
{
chats = (Dictionary<string, List<String>>) formatter.Deserialize(fs); //here is a error
fs.Close();
}
do you now any other option to save the dictionary(and also later load again) in a file. ^^
thanks for you help
Paul :)
I would use Json.Net, independent from assembly version changes and results in a readable text...
Later, you can load it as