LOF function

Purpose: Returns the length of a file.


 Syntax:

 SizeOfFile% = LOF(FileName$)

 Parameters:

  • FileName$ Name of an existing file.

 Return Value:

  • SizeOfFile%, the return value, is the byte size of the file.

BCX Console Sample Programs using LOF function.

S71.bas  S77.bas  S115.bas