public void loadSettings(File file){
  if (!file.canRead())   return;
  FileInputStream input=null;
  try {
    input=new FileInputStream(file);
    values.load(input);
  }
 catch (  IOException e) {
  }
 finally {
    if (input != null) {
      try {
        input.close();
      }
 catch (      IOException e) {
        e.printStackTrace();
      }
    }
  }
}

public void loadSettings ( File file ) { if ( ! file . canRead ( ) ) return ; FileInputStream input = null ; try { input = new FileInputStream ( file ) ; values . load ( input ) ; } catch ( IOException e ) { } finally { if ( input != null ) { try { input . close ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } } }
restores all values that were saved to the file in a previous instance .
