yangle
2024-05-10 f4575e9e43ee9d1ce4d6a5c7c507c6d9c824c806
WFormSynchronizeData_SMR/WFormReadData_SMR/ReadCSV.cs
@@ -168,10 +168,15 @@
            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;