I'm working with an INI configuration file in Java and encountering issues with extracting values using both ini4j and IniEditor by Nik Haldimann. The structure of the configuration file is as follows:
ipv4=false
ipv6=false
ssu=false
ntcp2.enabled=false
ssu2.enabled=false
meshnets.yggdrasil=true
[sam]
## Enable the SAM bridge (default: true)
enabled = true
## Address and ports service will listen on (default: 127.0.0.1:7656, udp: 7655)
# address = 127.0.0.1
# port = 7656
# portudp = 7655
The problem I'm facing is that there are no section values such as 'root' or similar. I've attempted to retrieve values using standard methods and both mentioned libraries, but without success.
Could someone guide me on how to properly parse and edit this type of INI configuration file in Java? If there's a recommended library or a standard way to handle such configurations, I'd appreciate the advice.
I tried set "" section.