|
@@ -0,0 +1,22 @@
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.IO;
|
|
|
+using System.Linq;
|
|
|
+using System.Text;
|
|
|
+using System.Threading.Tasks;
|
|
|
+
|
|
|
+namespace MainForm.ClassFile.FALibraryClass
|
|
|
+{
|
|
|
+ public class CSVHelper
|
|
|
+ {
|
|
|
+ /// <summary>
|
|
|
+ /// CSV文件添加一行日志
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
+ public static void CSVFile_AddLog(string filePath, string newLineData)
|
|
|
+ {
|
|
|
+ List<string> datas = new List<string>() { newLineData };
|
|
|
+ File.AppendAllLines(filePath, datas, Encoding.UTF8);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|