<< ibec_ini_GetStrings | IBEBlock | ibec_fs_Size >>


Resets the current position of the file stream.


  function ibec_fs_Seek(FileHandle : variant; Offset: integer; Origin: integer): integer;


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:

__soFromBeginningOffset is from the beginning of the resource. ibec_fs_Seek moves to the position Offset. Offset must be >= 0.
__soFromCurrentOffset is from the current position in the resource. ibec_fs_Seek moves to Position + Offset.
__soFromEndOffset 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.

See also:
ibec_fs_Position ibec_fs_Size

back to top of page
<< ibec_ini_GetStrings | IBEBlock | ibec_fs_Size >>