| | |
| | | |
| | | if (flag) |
| | | { |
| | | |
| | | DataTable dt = new DataTable(); |
| | | string contents = File.ReadAllText(csv_file_path, Encoding.GetEncoding("gb2312")); |
| | | //string csv_file_path_Read = @"C:\Users\admin\Desktop\新建文件夹 (2)\20231123_1.csv"; |
| | | string csv_file_path_Read = $@"D:\THLCR_Data\{HBath}\{HBath}_{Date}_C332001_2M_Read.csv"; //组装1 组装2路径 |
| | | //string csv_file_path_Read = $@"E:\THLCR_Data\{HBath}\{HBath}_{Date}_332009_Read.csv"; //组装3路径 |
| | | |
| | | File.Copy(csv_file_path, csv_file_path_Read, true); |
| | | |
| | | string contents = File.ReadAllText(csv_file_path_Read, Encoding.GetEncoding("gb2312")); |
| | | |
| | | TextFieldParser parser = new TextFieldParser(new StringReader(contents)); |
| | | |
| | | parser.HasFieldsEnclosedInQuotes = true; |