Exception if the file is not opened.
ErrnoException if the call to fseek fails.
void seek(long offset, int origin = SEEK_SET) @trustedCalls fseek for the file handle to move its position indicator.
offset | Binary files: Number of bytes to offset from origin. Text files: Either zero, or a value returned by tell. |
origin | Binary files: Position used as reference for the offset, must be one of SEEK_SET, SEEK_CUR or SEEK_END. Text files: Shall necessarily be SEEK_SET. |
Exception if the file is not opened.
ErrnoException if the call to fseek fails.