Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - filesize() return the size of the specified file http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 filesize()          Return the size of the specified file
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   func long filesize extern
   param const char cFileName

 Arguments
   cFileName is the name of the file to retrieve information about.

 Return
   The size of the file in bytes. If the file does not exist, or a
   subdirectory or volume label name is passed, then 0 is returned.

 Description
   The filesize() function returns the size of the specified disk file,
   cFileName.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   proc Test_filesize
   if .not. isempty( argv( 1 ) )
      ? "Size of", argv( 1 ), "is", istr( filesize( argv( 1 ) ) )
   else
      ? "Supply a file name"
   endif
   endproc

   proc main
   Test_filesize()
   endproc

See Also: fileattrib() filedate() filetime()

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