Syntax |
Lof(filenumber) |
Description |
Returns a Long representing the number of bytes in the given file. |
Comments |
The filenumber parameter is an Integer used by the Basic Control Engine to refer to the open file, the number passed to the Open statement. The file must currently be open. |
Example |
This example creates a test file, writes ten records into it, then finds the length of the file and displays it in a message box. Const crlf = Chr$(13) + Chr$(10) Sub Main() Open "test.dat" For Random Access
Read Write Shared As #1 |
See Also |
L |