f.seek(offset) f.seek(offset, whence)
(PHP 4, PHP 5)
fseek — Seeks on a file pointer
int fseek ( resource $handle , int $offset [, int $whence ] )
Sets the file position indicator for the file referenced by handle . The new position, measured in bytes from the beginning of the file, is obtained by adding offset to the position specified by whence .
Upon success, returns 0; otherwise, returns -1. Note that seeking past EOF is not considered an error.
Example #1 fseek() example