摘要: 一、bin文件 1、读写 /// <summary> /// 加载任意二进制文件 /// </summary> public static bool LoadBinaryFile(ref WaveData_Class testObj, string Fliepath) { bool res = fa 阅读全文
posted @ 2022-09-26 16:08 不溯流光 阅读(1426) 评论(0) 推荐(0) 编辑
摘要: 一、读写 /// <summary> /// 保存到csv /// </summary> public static void SaveCsv(string Path, string[] strArr) { //string path = System.AppDomain.CurrentDomain 阅读全文
posted @ 2022-09-26 16:05 不溯流光 阅读(1338) 评论(0) 推荐(0) 编辑
摘要: 一、ini文件 1、创建、读写 https://www.cnblogs.com/xmy-007/p/6400221.html 二、xml文件 1、读写 /// <summary> /// 加载xml文件保存到指定类 /// </summary> public static bool LoadXml( 阅读全文
posted @ 2022-09-26 15:54 不溯流光 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 一、读写TXT /// <summary> /// 读取txt /// </summary> public static string[] ReadTxt(string path) { List<string> str = new List<string>(); StreamReader sr = 阅读全文
posted @ 2022-09-26 15:48 不溯流光 阅读(1605) 评论(0) 推荐(0) 编辑
摘要: 一、DataTable导入导出Excel using System; using System.Collections.Generic; using System.Data; using System.Data.OleDb; using System.IO; using System.Linq; u 阅读全文
posted @ 2022-09-26 15:35 不溯流光 阅读(915) 评论(0) 推荐(0) 编辑
摘要: 一、DataTable与Excel的文件读写 1、Excel导出到DataTable using NPOI.SS.UserModel; using System; using System.Collections.Generic; using System.Data; using System.IO 阅读全文
posted @ 2022-09-26 09:42 不溯流光 阅读(861) 评论(0) 推荐(0) 编辑