FileSize

File management function.

The FileSize function returns the size of the specified file.

Syntax

a=FileSize(<filename>)

Parameters

<filename>, string, name of the file.

Return value

a, numeric value, integer which gives the number of bytes. If the file name is empty or the file does not exist, -1 is returned.

Example

 

a=FileSize("myfile.txt")