![]() |
|
The mi_file_seek() function seeks a specified location on an operating-system file.
The mi_file_seek() function uses the whence and offset arguments to determine the seek position, as follows:
This offset value can be negative for all values of whence. The mi_file_tell() function returns the current seek position for an open smart large object.
>=0 | is the new seek position, measured in number of bytes from the beginning of the file. |
MI_ERROR | indicates that the function was not successful. |
The mi_file_seek() function does not throw an MI_Exception event when it encounters a runtime error. Therefore, it does not cause callbacks to be invoked.
See the descriptions of the following functions: mi_file_open(), mi_file_read(), mi_file_tell(), and mi_file_write().