PWB Extensions Help (ext.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
FileLength
                                             Up Contents Index Back
─────PWB Extensions─────────────────────────────────────────────────────────
 
  Syntax:  LINE FileLength( PFILE pfFile );
 
  Returns: The number of lines in the given file.
 
  See:     DelFile, fChangeFile, FileNameToHandle, FileRead, FileWrite,
           fSetWindowWithFile, GetPfileFromName, pFileToBottom,
           pFileToTop, RemoveFile, Using Files
 
     FileLength returns the length in lines of the specified file.
 
     Since line numbers are zero-based, the line number of the last line
     in the file is given by the expression
 
          FileLength( pfFile ) - 1
                                    -♦-