QBasic 1.1: LOF Function

Syntax

LOF(filenumber%)

Description / Parameter(s)

filenumber% The number of an open file.

Example

INPUT "Enter filename: "; f$ OPEN f$ FOR BINARY AS #1 PRINT "File length = "; LOF(1) CLOSE