Returns the length of an open file in bytes.
LOF ( fileNumber )
fileNumber
The number assigned to the file when you opened it.
The LOF function returns a value of type Long.
LOF works only on an open file. To find the length of a file that isn't open, use the FileLen function.