private String readLineTrimComments(BufferedReader br) throws IOException {
  String line=br.readLine();
  if (line != null) {
    line=line.trim();
    if (line.indexOf('#') == 0) {
      line="";
    }
  }
  return line;
}

private String readLineTrimComments ( BufferedReader br ) throws IOException { String line = br . readLine ( ) ; if ( line != null ) { line = line . trim ( ) ; if ( line . indexOf ( '#' ) == 0 ) { line = "" ; } } return line ; }
reads the next line from the specified bufferedreader , removing leading and trailing whitespace and comments . null is returned on eof .
