V
vincente13
Hi there,
I notice that when we try to write a value back to the property file,
the original comment in the property file will be removed.
Any idea how to keep the comment in the property file and yet updating
the key with the new value?
String filename = "property.properties";
Properties p = new Properties();
p.setProperty("CacSrv", "SomeValue");
p.store(new FileOutputStream(filename), null);
I notice that when we try to write a value back to the property file,
the original comment in the property file will be removed.
Any idea how to keep the comment in the property file and yet updating
the key with the new value?
String filename = "property.properties";
Properties p = new Properties();
p.setProperty("CacSrv", "SomeValue");
p.store(new FileOutputStream(filename), null);