Skip to content

Commit

Permalink
Override file when writing to it
Browse files Browse the repository at this point in the history
  • Loading branch information
seionmoya committed Sep 8, 2024
1 parent cebb378 commit bf75226
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Fuyu.Common/IO/VFS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static void WriteTextFile(string filepath, string text)
CreateDirectory(path);
}

using (var fs = new FileStream(filepath, FileMode.OpenOrCreate, FileAccess.Write, FileShare.None))
using (var fs = new FileStream(filepath, FileMode.Create, FileAccess.Write, FileShare.None))
{
using (var sw = new StreamWriter(fs))
{
Expand Down

0 comments on commit bf75226

Please sign in to comment.