FileSize()

Syntax

Result.q = FileSize(Filename$)
Description
Returns the size of the specified file. This function can also be used to check if a file or directory exists or not.

Parameters

Filename$ The filename to get the size from.

Return value

Returns the size of the file in bytes, or one of the following values:
  -1: File not found.
  -2: File is a directory.

See Also

DirectoryEntrySize()

Supported OS

All

<- ExamineDirectory() - FileSystem Index - FinishDirectory() ->