Name
FileSize -- return the size of a specified file
Synopsis
size = FileSize(file$)
Function
Returns the size of file file$. If the file does not exist, -1 is returned.

Please note that FileSize() can also return -1 if it does not know the file's size. This can happen in case the file is read from a streamed source through a file adapter, for example.

Inputs
file$
source filename
Results
size
size of the specified file in bytes
Example
result = FileSize("test.jpg")
Print("The file test.jpg takes up", result, "bytes!")
This will print the size of the file "test.jpg".

Show TOC