I have to update the value of a tag in property file. I had to persist the layout of the file after updation, so I am using PropertiesConfiguration API form APACHE.
I have done this and functionality is working as expected. Now there was few keys for those vales have backslash() and forward slash(/).When I am updating it gets changed. Backslash get removed and updation and forward slash(/) becomes / this. Below is the sample code which I am using
properties = new PropertiesConfiguration(("Dbconnect - Copy.properties"));
properties.setProperty("ConfigFilePath", "C:\\Amitabh\\Projects\\");
properties.save();
System.out.println("config.properties updated Successfully!!");
Just to know that how I will prevent. Thanks & Regards Amitabh Pandey