Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Pascal - <b> longfilesize determine file size pp 199</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 LONGFILESIZE                Determine File Size                      pp 199

 Syntax:  LongFileSize (FileVar) ;

 Type:    File

 Form:    Function

 Purpose: Return file size in type Real.

 Notes:   MS-DOS long function for larger files.
          RealVar is type Real.


 ----------------------------------------------------------------------------


 Usage:
       TYPE
          FileType = String [80]             ;   { Define record size   }
       VAR
          FileVar  : File of FileType        ;   { 80 byte record size  }
       CONST
          FileName : String [8] = 'Name.Ext' ;   { Constant file name   }

       BEGIN
          RealVar := LongFileSize (FileVar)  ;   { Get current position }
       END.

See Also: LongSeek LongFilePos

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson