Reset Password
Check your e-mail for further instructions.
Reset
Name
file_seek
Auth
yes
Description
Sets the current offset of the file descriptor to offset bytes.
This methods works in the following modes, depending on the whence parameter:
whence | Description |
0 | moves after beginning of the file |
1 | after current position |
2 | after end of the file |
Required
Parameter | Description |
fd | int the file descriptor, for which the current offset is changed |
offset | int the offset in bytes, to which to move the current offset |
Optional
Parameter | Description |
whence | int mode, in which the offset seek works. Default value is 0 |
Output
Returns the new offset.
Example
{ result: 0, offset: 1024 }
Errors
Code | Description |
1000 | Log in required. |
1007 | Invalid or closed file descriptor. |
1009 | Please provide 'offset'. |
2000 | Log in failed. |
4000 | Too many login tries from this IP address. |
5004 | Read error. Try reopening the file. |