import org.ini4j.Ini;
public class IniExample {
public static void main(String[] args) {
try {
Ini ini = new Ini(new File("config.ini"));
String sectionValue = ini.get("Section1").fetch("Key1");
System.out.println(sectionValue);
ini.put("Section1", "Key1", "NewValue");
ini.store();
} catch (IOException e) {
e.printStackTrace();
}
}
}