public static void store ( String absolutePath , Properties configs ) throws IOException { OutputStream outStream = null ; try { outStream = new FileOutputStream ( new File ( absolutePath ) ) ; configs . store ( outStream , null ) ; } finally { try { if ( outStream != null ) { outStream . close ( ) ; } } catch ( IOException ignore ) { // do nothing. } } }
Write into properties file .