public Boolean loadPropertiesFile ( String path ) throws IOException { Properties prop = new Properties ( ) ; InputStream input = null ; try { input = new FileInputStream ( path ) ; prop . load ( input ) ; for ( String key : prop . stringPropertyNames ( ) ) { String value = prop . getProperty ( key ) ; configs . put ( key , value ) ; } return true ; } catch ( IOException ex ) { return false ; } }
Load Properties File