Moves a file pointer.
fileseek <file handle> <offset> <origin>
Moves the pointer for the file specified by <file handle>.
With this command, the file pointer is moved to followings:
<origin> | 0 | <offset> bytes from the beginning of the file. |
---|---|---|
<origin> | 1 | <offset> bytes from the current position. |
<origin> | 2 | <offset> bytes from the end of the file. |
; Move to the beginning of file. fileseek fhandle 0 0 ; Move 10 bytes from the current position. fileseek fhandle 10 1 ; Move to the end of file. fileseek fhandle 0 2 ; Move to the position 10 bytes backward from the end of file. fileseek fhandle 0-10 2