Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - filesize(<c filespec>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FILESIZE(<C filespec>)
 Evaluates the amount of disk space occupied by a file.
 Returns <expN> size of file in bytes.

 * Does backup disk have enough space?
 IF DISKSPACE(1) > FILESIZE( "Myfile.dbf" )
    COPY FILE Myfile.dbf TO A:Myfile.dbf
 ELSE
    ? "Error -- not enough room on drive A:"
 ENDIF

 Hazard
    If the file being checked is an open database file, it's
    size may change when you close it.  Use FILESIZE() on closed
    files only, and Clipper's HEADER() on open database files.


             Placed in the Public Domain by Tom Rettig Assoc.

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