From the documentation
The values for WHENCE are 0 to set the new position in bytes to POSITION; 1 to set it to the current position plus POSITION; and 2 to set it to EOF plus POSITION, typically negative.
I suspect your error message is because you are trying to seek to a negative offset from the beginning of the file.
Cheers,
JohnGG
In reply to Re^4: File seek
by johngg
in thread File seek
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |