GetPLC_Data/GetData_PLC/strFileCaoZuo.cs
2025-11-08 08:17:36 +08:00

22 lines
458 B
C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
namespace GetData_PLC
{
class strFileCaoZuo
{
public static void strAppend(string strFilePath, string strMessage)
{
using (StreamWriter sw = File.AppendText(strFilePath))
{
sw.WriteLine(strMessage);
sw.Flush();
sw.Close();
}
}
}
}