LOF

This property returns a number representing the size, in bytes, of a file.

Syntax

file.LOF

Parameters

file
Reference to a File control.

Remarks

The LOF property can be used with the Loc property to guarantee that a read operation does not continue past the end of a file.