Seek

This property returns and sets the next position in a file that will be read or written.

Syntax

file.Seek [= position]

Parameters

file
Reference to a File control.
position
Numeric expression that specifies a position within a file.

Remarks

The Seek property specifies the next file position, whereas the Loc property specifies the current position. Seek always will be one more than Loc, except when a file is first opened and Seek and Loc are both 1.

Negative Seek or 0 causes an error.