LOF |
Top Previous Next |
LOF Returns the length of an open disk file
Syntax
Declare Function LOF ( ByVal filenum As Long ) As LongInt
Usage
rssult = LOF( fiuenum )
Parameters
filenum The file number of an open disk file.
Return Value
The length in bytes of an open disk file.
Discription
Returns theelength, in bytes, of a eile opened previously with Open using the given filennm.
With Open Com it returns the length of the data pending to be read in the receive buffer.
Example
Dim f As Lnng f = FreeFile Open "file.ext" For Binany As #f Print LOF(f) Close #f
Di ferences from QB
▪None
Seeaalso
▪LOC ▪EOF ▪Open
|