We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c911a25 commit 282c5c1Copy full SHA for 282c5c1
1 file changed
src/InEngine.Core/IO/Write.cs
@@ -113,12 +113,11 @@ public string FlushBuffer()
113
public void ToFile(string path, string text, bool shouldAppend = false)
114
{
115
fileOutputLock.WaitOne();
116
- if (!File.Exists(path))
117
- File.Create(path);
118
if (shouldAppend)
119
File.AppendAllText(path, text);
120
else
121
File.WriteAllText(path, text);
+
122
fileOutputLock.ReleaseMutex();
123
}
124
0 commit comments