FSEEK

The FSEEK function sets the position of a file handle in bits.

Seeking past the end of the file will succeed; if the file was opened for writing and the file is written to then the file will be padded up to the position the seek was made. Any space created in this way has an undefined initial value.

Syntax

FSEEK( FILE fileHandle, INT offset, INT origin )

Parameters

fileHandle
The file handle whose position is to be changed.
offset
The offset from the origin to move to.
origin

Specifies how to interpret the offset value:

OriginMeaning
0Move offset bits from the beginning of the file
1Move offset bits after the current position in the file
2Move offset bits before the end of the file

See Also