lof()

Returns length of file expressed in bytes.

Syntax:
lof( stream )

stream is a file previously opened by the open command.

Example:
open "myfile.txt" for input as 1
prints( "the lenght of file \"myfile.txt\" is:"+str$( lof( 1 ) ) ) 
close 1
waitKey