public static Properties loadConfigFile(String path){
  Properties property=null;
  File file=new File(path);
  if (file.exists() && file.canRead()) {
    try {
      property=new Properties();
      property.load(new FileReader(file.getAbsolutePath()));
    }
 catch (    FileNotFoundException e) {
      e.printStackTrace();
    }
catch (    IOException e) {
      e.printStackTrace();
    }
  }
  return property;
}

public static Properties loadConfigFile ( String path ) { Properties property = null ; File file = new File ( path ) ; if ( file . exists ( ) && file . canRead ( ) ) { try { property = new Properties ( ) ; property . load ( new FileReader ( file . getAbsolutePath ( ) ) ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } } return property ; }
searching the specified configuration file and return a properties
