Description: This function returns the size of a disk file in bytes.
Returns: Numeric
Usage: Script
Format: FileSize(FileName)
Parameters: FileName { text } { required } { no default: }
Any text expression that gives the path, file name, and extension of the file.
Comments: This function returns the size of the file in bytes. If the return value is invalid, the file could not be found.
Example:
If ! Valid(size);
[
size = FileSize("C:\Log\Samples.DAT")
]
Size is set to the size in bytes of the file indicated.
See Also: