string path1 = "路径";
using(StreamReader sr = new StreamReader(path,Encoding.Default))
{
String line;
while ((line = sr.ReadLine()) != null)
{
string[] nums=line.spilte(new char[]{','},StringSplitOptions.RemoveEmptyEntries
);
//todo
}
}
Flie.ReadAllLines("stringpath",文字编码格式)