Changed the Open of the ROEditor.own file to an OpenOrCreate

This commit is contained in:
John Jenko 2015-03-03 21:20:56 +00:00
parent 73ce62d4c8
commit 36cafa9085

View File

@ -1547,7 +1547,7 @@ namespace ROEditor
try try
{ {
fiown = new FileInfo("RoEditor.own"); fiown = new FileInfo("RoEditor.own");
fsown = fiown.Open(FileMode.Open, FileAccess.Read, FileShare.ReadWrite); fsown = fiown.Open(FileMode.OpenOrCreate, FileAccess.Read, FileShare.ReadWrite);
TextReader tr = new StreamReader(fsown); TextReader tr = new StreamReader(fsown);
string who = tr.ReadToEnd(); string who = tr.ReadToEnd();
tr.Close(); tr.Close();