using (FileStream fileStream = new FileStream(path, FileMode.Open, FileAccess.Read)) using (StreamReader reader = new StreamReader(fileStream, Encoding.GetEncoding("GB2312"))) using (var matchCsv = new CsvReader(reader)) {
do something
}
转自:https://www.cnblogs.com/coky/p/6897282.html