|The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....|
|Home BasePack FileSys Procedures Files ReadLastNLinesOfTextFile|
|See also: AppendToTextFile, CountLinesInTextFile|
The function ReadLastNLinesOfTextFile reads the NLines last lines of a text file specified by FVar or FName. Version  requires an open text file, the file pointer is reset by the function. In the case of version  the file is opened (and closed) using the filename FName.
The variable parameter Count returns the total number of lines in the file, the last NLines lines are returned as an open array whose size is adjusted to NLines.