This question already has an answer here:
- What is the easiest way to parse an INI file in Java? 10 answers
Given a file containing this:
[upper]
a = A
b = B
[words]
1 = one
2 = two
How do I access these key/values with reference to their headers? Java's Properties() class only handles section-less files.