Skip to content

Commit

Permalink
[Registry Preview] Fix the issue of saving files without truncation (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty472123 committed Jul 1, 2023
1 parent 2dcaa52 commit 8ccbb69
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ private void SaveFile()
FileStreamOptions fileStreamOptions = new FileStreamOptions();
fileStreamOptions.Access = FileAccess.Write;
fileStreamOptions.Share = FileShare.Write;
fileStreamOptions.Mode = FileMode.OpenOrCreate;
fileStreamOptions.Mode = FileMode.Create;

fileStream = new FileStream(App.AppFilename, fileStreamOptions);
StreamWriter streamWriter = new StreamWriter(fileStream, System.Text.Encoding.Unicode);
Expand Down

0 comments on commit 8ccbb69

Please sign in to comment.