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 CountLinesInTextFile | |||||||||
See also: CountLinesInStream, AppendToTextFile, EnsureCRLFInFile, ReadLastNLinesOfTextFile | |||||||||
CountLinesInTextFile |
|||||||||
The function CountLinesInTextFile counts the number of lines in the text file specified by FVar or FName. Version [1] requires an open text file, the file pointer is reset by the function. In the case of version [2] the file is opened (and closed) using the filename FName. In order to provide feedback when reading large files a callback routine can be assigned to the parameter FeedBack. The callback routine is called after every 1000 lines and returns the number of currently read lines in the StateCnt parameter of the feedback routine (the PercentDone parameter is always zero).
|