NAME

lof - length of file

SYNOPSIS

v = lof(FileNum)

DESCRIPTION

FileNum is the file number used when the file was opened.  Lof returns the number of bytes allocated to the file. 

EXAMPLE

In this example, the program stops if the fileís size exceeds 50,000 bytes:
	if lof(1) > 50000 then stop

DIAGNOSTICS

A "Bad file number" error occurs if FileNum is less than 1 or greater than the maximum number of open files. 

from The Basmark QuickBASIC Programmerís Manual by Lawrence Leinweber