FileLen

This method returns a value specifying the length, in bytes, of a file.

Syntax

filesystem.FileLen(pathname)

Parameters

filesystem
Reference to a FileSystem control.
pathname
Required. String expression that specifies a file. The pathname can include a directory or folder.

Return Value

Returns the number of bytes in a file.

Remarks

If the specified file is open when the FileLen method is called, the value returned represents the size of the file immediately before it was opened.