public void store(File file,String header) throws IOException {
  if (file == null) {
    throw new NullPointerException("file must not be null");
  }
  properties.store(new FileWriter(file),header);
}

public void store ( File file , String header ) throws IOException { if ( file == null ) { throw new NullPointerException ( "file must not be null" ) ; } properties . store ( new FileWriter ( file ) , header ) ; }
store the configuration in the specified file with the specified header .
