以往讀取檔案使用ReadAllLines,需要一次載入所有內容,所以會有卡住的情況發生。 foreach (string line in File.ReadAllLines(@"C:\a.log")) { ...
確定! 回上一頁