csv读取
FileStream fs = new FileStream(tpml1 + "\\01.csv", System.IO.FileMode.Open, System.IO.FileAccess.Read);
StreamReader sr = new StreamReader(fs, System.Text.Encoding.Default);
while (!sr.EndOfStream)
{
string strline = sr.ReadLine();
string[] split = strline.Split(',');
//文件名
string dir1 = split[0];
}
fs.Close();
csv写
string strline;
string[] aryline;
StreamReader mysr = new StreamReader(tpml2 + "界址点说明缺数量统计.csv", System.Text.Encoding.Default);
while ((strline = mysr.ReadLine()) != null)
{
aryline = strline.Split(new char[] { ',' });
}