摘要: public static DataTable ReadDataTable(string filePath) { DataTable dt = new DataTable(); try { System.Text.Encoding encoding = Encoding.Default;//GetT 阅读全文
posted @ 2024-12-10 16:49 qiutian-hao 阅读(9) 评论(0) 推荐(0) 编辑
摘要: public static DataTable ReadDataTable(string filePath) { DataTable dt = new DataTable(); StreamReader sR = null; try { if (File.Exists(filePath)) { sR 阅读全文
posted @ 2024-12-10 16:48 qiutian-hao 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Dictionary<int, double> keyValuePairs = new Dictionary<int, double>(); keyValuePairs.Add(1, 10); keyValuePairs.Add(3, 33); keyValuePairs.Add(2, 13); / 阅读全文
posted @ 2024-12-10 16:48 qiutian-hao 阅读(4) 评论(0) 推荐(0) 编辑
摘要: // 使用DirectoryInfo类 DirectoryInfo directory = new DirectoryInfo(path); // 获取目录下的所有文件 FileInfo[] files = directory.GetFiles(); 阅读全文
posted @ 2024-12-10 16:47 qiutian-hao 阅读(5) 评论(0) 推荐(0) 编辑