meta data for this page
  •  

ibec_fs_Seek

Resets the current position of the file stream.

Description

Use ibec_fs_Seek to move the current position within the file by the indicated offset. ibec_fs_Seek allows you to read from or write to a particular location within the file.

The Origin parameter indicates how the Offset parameter should be interpreted. Origin should be one of the following values:

Value Meaning
_ _soFromBeginning Offset is from the beginning of the resource. ibec_fs_Seek moves to the position Offset. Offset must be >= 0.
_ _soFromCurrent Offset is from the current position in the resource. ibec_fs_Seek moves to Position + Offset.
_ _soFromEnd Offset is from the end of the resource. Offset must be ⇐ 0 to indicate a number of bytes before the end of the file.

ibec_fs_Seek returns the new current position in the file.

This function now supports files larger than 2 GB.

Example