size = FileSize(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.
result = FileSize("test.jpg") Print("The file test.jpg takes up", result, "bytes!")This will print the size of the file "test.jpg".