TradeMUX SDK Documentation
1.0
TradeMUX SDK Documentation
|
bool FileSeek | ( | int | handle, |
int | offset, | ||
int | origin | ||
) |
Moves the position of the file pointer by a specified number of bytes relative to the specified position
handle | File descriptor returned by FileOpen() | ||||||
offset | The shift in bytes (may take a negative value) | ||||||
origin | The starting point for the displacement. Can be one of the following values:
|
If the execution of the FileSeek() function results in a negative shift (going beyond the "level boundary" of the file), the file pointer
will be set to the file beginning.
If a position is set beyond the "right boundary" of the file (larger than the file size), the next writing to the file will be performed not from
the end of the file, but from the position set. In this case indefinite values will be written for the previous file end and the position set.