GetPLC_Data/GetData_PLC/strFileCaoZuo.cs

22 lines
458 B
C#
Raw Permalink Normal View History

2025-11-08 00:17:36 +00:00
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();
}
}
}
}