Clib Set Cursor Position Method
The Clib Set Cursor Position method sets the position of the file cursor of an open file. It returns one of the following values:
If successful, then it returns the following value:
0
If not successful, then it returns a nonzero value.
Format
Clib.fseek(filePointer, offset[, mode])
The following table describes the arguments for the Clib Set Cursor Position method.
Argument | Description |
---|---|
filePointer |
A file pointer that the Clib Open File method returns. |
offset |
The number of bytes that the Clib Set Cursor Position method moves the file cursor, starting with the value that you specify in the mode argument. The cursor position in a text file might not correspond exactly with the byte offset in the file. A text file is a file that is not opened in binary mode. |
mode |
You can specify one of the following values:
|
Related Topics
For more information, see the following topics: