how to write data to a property file