Zero dependency pure Java library to support iterating over the key-value pairs of any INI file.
Add it as a maven dependency or just download the latest release.
<dependency>
<groupId>com.konloch</groupId>
<artifactId>IterateINI</artifactId>
<version>1.0.3</version>
</dependency>
This shows an example of using the API to read an example ini file. The key and value parameters are String types.
IterateINI.fromFile(new File("example.ini"), (key, value) -> {
System.out.println("Key: " + key + ", Value: " + value);
});
The API is read only, and does not support sections, entry recognition or multi-line values