Search code examples
javainiini4j

How to append values to a key using ini4j?


I want to append a value to following Key like this:

[Section]
Key=value1,value2

I tried Wini and Section getAll() and putAll() functions but it always replaces value1 with value2 instead of appending value2. And I did' t find any tutorial about this online. How can I do this using ini4j? Or another jni writinig and parsing library?


Solution

  • I finally treated it as a single Key-value pair and appended to the string after "Key=".