src/File.php
public function seek($handle, int $offset, int $whence = SEEK_SET) : int
    {
        $position = fseek($handle, $offset, $whence);

        if (-1 === $position) {
            throw new FileException('Cannot move pointer to desired position.');
        }

        return $position;
    }
public function seek($handle, int $offset, int $whence = SEEK_SET) : int
    {
        $position = fseek($handle, $offset, $whence);

        if (-1 === $position) {
            throw new FileException('Cannot move pointer to desired position.');
        }

        return $position;
    }
public function seek ( $ handle , int $ offset , int $ whence = SEEK_SET ) : int { $ position = fseek ( $ handle , $ offset , $ whence ) ; if ( - 1 === $ position ) { throw new FileException ( 'Cannot move pointer to desired position.' ) ; } return $ position ; }
Move file pointer to given offset.

@param Resource $handle
@param int      $offset
@param int      $whence

@throws FileException

@return int
Move file pointer to given offset .