Loc

This property returns a number specifying the current read/write position.

Syntax

file.Loc

Parameters

file
Reference to a File control.

Remarks

For files opened with the fsModeRandom file mode, Loc returns the number of the last record read or written. For files opened with all other modes, Loc returns the position of the last byte read or written.