config icon indicating copy to clipboard operation
config copied to clipboard

How to save setting

Open oliver108 opened this issue 3 years ago • 1 comments
trafficstars

I am using the lightbend library with Java, with a config file in the filesystem, using parseFile(). I did not find how to change a setting and save it back to the file. How can that be done (if at all)?

oliver108 avatar Dec 03 '21 17:12 oliver108

You can call config.root.render() to convert a Config to a string, but it does not preserve formatting, and there's no method that writes it to a file for you.

havocp avatar Dec 03 '21 18:12 havocp