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.