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

Parameters
handleFile descriptor returned by FileOpen()
offsetThe shift in bytes (may take a negative value)
originThe starting point for the displacement. Can be one of the following values:
SEEK_SETFile beginning
SEEK_CURCurrent position of a file pointer
SEEK_ENDFile end
Returns
If successful the function returns true, otherwise false. To obtain information about the error call the GetLastError() function

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.