Flitch\File\File::seekNextLine PHP Method

seekNextLine() public method

Seek to the next line.
public seekNextLine ( ) : boolean
return boolean
    public function seekNextLine()
    {
        $line = $this->current()->getLine();
        while (true) {
            $this->next();
            if (!$this->valid()) {
                return false;
            } elseif ($this->current()->getLine() > $line) {
                return true;
            }
        }
    }