surprise, the bug was in the code, .NET is off the hook. Spotted by Hervé

svn path=/trunk/tools/RosTE/; revision=248
This commit is contained in:
Ged Murphy 2007-06-22 14:10:58 +00:00
parent ffd6137f70
commit 79c55a37a8

View File

@ -124,8 +124,7 @@ namespace RosTEGUI
public void SaveMainConfig()
{
string fileName = "Config.xml";
File.Delete(fileName); // overcome a .NET bug when rewriting XML files
FileStream fs = new FileStream(fileName, FileMode.OpenOrCreate, FileAccess.Write);
FileStream fs = new FileStream(fileName, FileMode.Create, FileAccess.Write);
XmlTextWriter xtw = new XmlTextWriter(fs, System.Text.Encoding.Unicode);
data.DataSet.WriteXml(xtw, System.Data.XmlWriteMode.WriteSchema);
xtw.Close();