你看一下StreamReader 的参数,第一个应该是填 路径地址。
你用这个来:
string[] s= File.ReadAllLines("D:\\1.txt",Encoding.Default);//txt文本里的一行就是s的一个元素。然后你再用Split。