mirror of
https://github.com/reactos/RosTE.git
synced 2024-11-23 03:29:57 +00:00
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:
parent
ffd6137f70
commit
79c55a37a8
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user