LOF function

Purpose: LOF returns the length of a file.


Syntax:

 SizeOfFile = LOF(FileName AS STRING)

Return Value:

  • Data type: ULONGLONG
    SizeOfFile The byte size of the file if LOF is able to determine the size, otherwise, 0 is returned.

Parameters:

  • Data type: STRING
    FileName The name of an existing file.

BCX Console Sample Programs using LOF function.

S71.bas S77.bas S115.bas