From 70b4c5360086fbed0dee9cabe4aa45d226424361 Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 7 Jul 2023 22:25:41 +0800 Subject: [PATCH] =?UTF-8?q?*=20UIniFile:=20=E5=B0=86=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=92=8C=E6=96=87=E4=BB=B6=E7=BC=96=E7=A0=81?= =?UTF-8?q?=E5=86=99=E5=85=A5=E6=96=87=E4=BB=B6=E5=A4=B4=E9=83=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Common/UIniFile.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SunnyUI/Common/UIniFile.cs b/SunnyUI/Common/UIniFile.cs index 594bece6..f403658a 100644 --- a/SunnyUI/Common/UIniFile.cs +++ b/SunnyUI/Common/UIniFile.cs @@ -18,6 +18,7 @@ * * 2020-01-01: V2.2.0 增加文件说明 * 2022-11-01: V3.2.6 增加读取字符串长度到4096,增加文件编码 + * 2023-07-07: V3.3.9 将文件版本和文件编码写入文件头部 ******************************************************************************/ using Sunny.UI.Win32; @@ -63,7 +64,7 @@ namespace Sunny.UI //文件不存在,建立文件 using (StreamWriter sw = new StreamWriter(fileName, false, IniEncoding)) { - sw.Write(";"); + sw.WriteLine(";"); sw.WriteLine(""); } }