private long readFreqFromFile(String fileName){
  long number=0;
  try {
    BufferedReader reader=new BufferedReader(new FileReader(fileName));
    try {
      String line=reader.readLine();
      number=parseLong(line);
    }
  finally {
      reader.close();
    }
  }
 catch (  FileNotFoundException e) {
  }
catch (  IOException e) {
  }
  return number;
}

private long readFreqFromFile ( String fileName ) { long number = 0 ; try { BufferedReader reader = new BufferedReader ( new FileReader ( fileName ) ) ; try { String line = reader . readLine ( ) ; number = parseLong ( line ) ; } finally { reader . close ( ) ; } } catch ( FileNotFoundException e ) { } catch ( IOException e ) { } return number ; }
read a single integer value from the named file . return the read value or if an error occurs return 0 .
