Lof Function

Returns the size of an open file in bytes.

Syntax:


Lof (FileNumber)

Return value:

Long

Parameters:

FileNumber: Any numeric expression that contains the file number that is specified in the Open statement.

Tip Icon

To obtain the length of a file that is not open, use the FileLen function.


Error codes:

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err5 not found).

D'oh! You found a bug (text/sbasic/shared/00000003.xhp#err52 not found).

Example:

Please support us!