private static String readLine(String filename) throws IOException {
  BufferedReader reader=new BufferedReader(new FileReader(filename),256);
  try {
    return reader.readLine();
  }
  finally {
    reader.close();
  }
}

private static String readLine ( String filename ) throws IOException { BufferedReader reader = new BufferedReader ( new FileReader ( filename ) , 256 ) ; try { return reader . readLine ( ) ; } finally { reader . close ( ) ; } }
reads a line from the specified file .
