public function next()
    {
        $this->valid       = !$this->inputStream->eof();
        $this->currentLine = $this->inputStream->readLine();
        $this->lineNumber++;
    }
public function next()
    {
        $this->valid       = !$this->inputStream->eof();
        $this->currentLine = $this->inputStream->readLine();
        $this->lineNumber++;
    }
public function next ( ) { $ this -> valid = ! $ this -> inputStream -> eof ( ) ; $ this -> currentLine = $ this -> inputStream -> readLine ( ) ; $ this -> lineNumber ++ ; }
moves forward to next line
moves forward to next line