public String readLine() throws IOException {
  StringBuffer line=new StringBuffer();
  char ch=read();
  try {
    while (ch != '\n' && ch != '\r') {
      if (hasComments) {
        if (ch == lineComment) {
          skipComments(ch);
          break;
        }
        if (ch == startComment) {
          skipComments(ch);
          ch=read();
        }
      }
      line.append(ch);
      ch=read();
    }
    if (ch == '\r') {
      if (next() == '\n')       read();
    }
    lastDelimiter=ch;
  }
 catch (  EOFException e) {
  }
  return line.toString();
}

public String readLine ( ) throws IOException { StringBuffer line = new StringBuffer ( ) ; char ch = read ( ) ; try { while ( ch != '\n' && ch != '\r' ) { if ( hasComments ) { if ( ch == lineComment ) { skipComments ( ch ) ; break ; } if ( ch == startComment ) { skipComments ( ch ) ; ch = read ( ) ; } } line . append ( ch ) ; ch = read ( ) ; } if ( ch == '\r' ) { if ( next ( ) == '\n' ) read ( ) ; } lastDelimiter = ch ; } catch ( EOFException e ) { } return line . toString ( ) ; }
reads a line , skipping over any comments .
