📅  最后修改于: 2022-03-11 14:49:09.641000             🧑  作者: Mango
If the file is not too large, just read the lines and pick the last:
string lastLine = File.ReadLines("pathToFile").LastOrDefault();