csv读取文章来源:https://www.toymoban.com/news/detail-723220.html
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写文章来源地址https://www.toymoban.com/news/detail-723220.html
string strline;
string[] aryline;
StreamReader mysr = new StreamReader(tpml2 + "界址点说明缺数量统计.csv", System.Text.Encoding.Default);
while ((strline = mysr.ReadLine()) != null)
{
aryline = strline.Split(new char[] { ',' });
}
到了这里,关于c# CSV 笔记的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!