Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- ClipOn 3.0 Reference - c_filesize() http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 C_FILESIZE()

 DESCRIPTION

 C_FILESIZE() is used to determine the total size of a specified
 file.  The file can be either currently opened with an active file
 handle or not opened.

 NOTES

 On a network, C_FILESIZE() needs the network flag (logical
 parameter) passed as true (.T.) to insure that the file is opened
 with the proper share access.  If the file is already open and the
 file handle is used then the network flag is not needed.

 This function is an extension of Clipper's low-level file
 functions.  Clipper's function FOPEN() can be used to open the DOS
 file and obtain the file handle needed for this function.

 SYNTAX

 C_FILESIZE(file [,network])

 PARAMETERS

 file (N/C) is the file to determine the size.  The file argument
 can be specified as a file handle if the file is already open, or
 as a file name with the drive and full path name, if needed.

 network (L) indicates whether or not the program is running on a
 network.  If the program is running on a network pass true (.T.) so
 the file can be opened with the proper share access, otherwise pass
 false (.F.).  If network is not specified, the default of false
 (.F.) is used.  If the parameter file is a file handle (N) the
 network parameter is not needed.

 RETURNS

 C_FILESIZE() returns the size of the file in bytes.

 EXAMPLES

 && Get file size using file name
 ? c_filesize("FILE.TXT) -->  2080

 && For a network, pass true (.T.)
 ? c_filesize("FILE.TXT, .T.) -->  2080

 f1 = fopen("FILE.TXT")         && Open the file
 ? c_filesize(f1) -->  2080     && Get file size using handle


See Also: C_FILEPOS() C_FILEBYTE() C_FILESTR() C_FILEREAD()

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