xml file save/read error (making a highscore system for XNA game)
- by Eddy
i get an error after i write player name to the file for second or third time (An unhandled exception of type 'System.InvalidOperationException' occurred in System.Xml.dll
Additional information: There is an error in XML document (18, 17).)
(in highscores load method
In data = (HighScoreData)serializer.Deserialize(stream);
it stops)
the problem…