int Seek(int offset, int origin = Seek_Set);
Seek sets file position indicator in the file and returns new position.
Parameters |
Description |
int offset |
Number of bytes from origin. |
int origin = Seek_Set |
Position from where offset is added; here the position is beginning of the file. |
An int value containing the new position, otherwise -1 for error.