hyperrealm / libconfig

C/C++ library for processing configuration files
https://hyperrealm.github.io/libconfig/
GNU Lesser General Public License v2.1
1.11k stars 362 forks source link

Comments are deleted #134

Closed aspect-ex closed 5 years ago

aspect-ex commented 5 years ago

I am planning to use libconfig in C ++ development.

However, When I update the value of the item and then execute writeFile (cfg), all comment lines and blank lines written in config file will be deleted.

Is there a way to leave comments intact?

Thank you.