From b6d2f38e72e0380cee5684af0126e4eceabeb802 Mon Sep 17 00:00:00 2001 From: ninemine <1371605831@qq.com> Date: Wed, 12 Nov 2025 09:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DToolFile=E4=B8=AD=E4=BF=9D?= =?UTF-8?q?=E5=AD=98=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Convention/[Runtime]/File.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Convention/[Runtime]/File.cs b/Convention/[Runtime]/File.cs index 7db13ee..159d108 100644 --- a/Convention/[Runtime]/File.cs +++ b/Convention/[Runtime]/File.cs @@ -318,7 +318,7 @@ namespace Convention } public void SaveAsText(string data) { - using var fs = new FileStream(OriginPath, FileMode.CreateNew, FileAccess.Write); + using var fs = new FileStream(OriginPath, FileMode.Create, FileAccess.Write); using var sw = new StreamWriter(fs); sw.Write(data); sw.Flush(); @@ -332,7 +332,7 @@ namespace Convention } else { - using var fs = new FileStream(path, FileMode.CreateNew, FileAccess.Write); + using var fs = new FileStream(path, FileMode.Create, FileAccess.Write); fs.Write(outdata, 0, outdata.Length); fs.Flush(); }