private void deleteOldTemp(File fileCfg){
  BufferedReader reader=null;
  try {
    int count=0;
    reader=new BufferedReader(new FileReader(fileCfg));
    String sLine;
    while ((sLine=reader.readLine()) != null) {
      File file=new File(sLine);
      if (!file.exists()) {
        continue;
      }
      if (file.delete()) {
        count++;
      }
 else {
        hsDeleteOnExit.add(file);
      }
    }
    logDebug(LogArea.CONFIG,"Deleted %d old temp files listed in %s",count,fileCfg.getAbsolutePath());
  }
 catch (  IOException e) {
  }
 finally {
    if (reader != null) {
      try {
        reader.close();
      }
 catch (      IOException e) {
      }
    }
  }
}

private void deleteOldTemp ( File fileCfg ) { BufferedReader reader = null ; try { int count = 0 ; reader = new BufferedReader ( new FileReader ( fileCfg ) ) ; String sLine ; while ( ( sLine = reader . readLine ( ) ) != null ) { File file = new File ( sLine ) ; if ( ! file . exists ( ) ) { continue ; } if ( file . delete ( ) ) { count ++ ; } else { hsDeleteOnExit . add ( file ) ; } } logDebug ( LogArea . CONFIG , "Deleted %d old temp files listed in %s" , count , fileCfg . getAbsolutePath ( ) ) ; } catch ( IOException e ) { } finally { if ( reader != null ) { try { reader . close ( ) ; } catch ( IOException e ) { } } } }
deletes temporary files listed in the file . the method is called on shutdown ( ) .
