http://social.microsoft.com/Forums/zh-CN/c19a14fa-f6e0-42e7-b39f-f13388cc0c3f/-
StreamReader.ReadLine 的方法 來讀取某個行的
例如
int LineNo = 0 ; int LineToRead = 10; string line = ""; string TempLine = ""; using (StreamReader sr = new StreamReader(path)) { while (sr.Peek() >= 0) { i++; if (i==LineToRead){ line = sr.ReadLine(); } else{ TempLine = sr.ReadLine(); } } }