Code example for Properties

Methods: loadsetPropertystore

     * @param value 
     * @throws Exception 
    private void applyProperty(File srcFile, String key, String value) throws Exception {
        File destinationFile = new File(srcFile.getName());
        Properties properties = new Properties();
        properties.load(new FileInputStream(srcFile));
        properties.setProperty(key, value); FileOutputStream(destinationFile), null);
     * At the wind-up replace file with previous 
     * @throws Exception 
    @AfterClass(alwaysRun = true) 
    public void atEnd() throws Exception { 
        try { 
Stop searching for code, let great code find you!  Add Codota to your java IDE