📅  最后修改于: 2022-03-11 14:49:07.090000             🧑  作者: Mango
var nrOfPagesToRead = 10;
var lastLines = File.ReadLines(filePath).TakeLast(nrOfPagesToRead);
// careful because ReadLines(path) reads all the file in memory.
// Do not use this for large files.