There is a configuration file in the following format:
[section1]
key1=value1
key2=value2
[section2]
key3=value3
key4=value4
...
[section2]
key3=value5
key4=value6
The problem is that we should not merge the keys that belong to the sections of the same name.
Ini4j merges them into one section: [[section2], key3, key4]
Is there a java-parser, which returns list of sections, not set?
1 Answer