code: protected String getNextLine() throws IOException {
          if (isClosed()) {
              hasNext = false;
              return null;
          }
  
          if (!this.linesSkiped) {
              for (int i = 0; i < skipLines; i++) {
                  lineReader.readLine();
                  linesRead++;
              }
              this.linesSkiped = true;
          }
          String nextLine = lineReader.readLine();
          if (nextLine == null) {
              hasNext = false;
          } else {
              linesRead++;
          }
  
          return hasNext ? nextLine : null;
      }
docs: Reads the next line from the file.
  
  @return the next line from the file without trailing newline
  @throws IOException if bad things happen during the read