I am using ini4j API to parse .ini files, in which the section name is in the format [mm/yyyy], where the / character is causing troubles.
Suppose my test.ini file is as follows:
[02/2018]
k=v
My Java code snippet is:
Ini ini = new Ini(new File("test.ini"));
Set<String> sectionNames = ini.keySet();
System.out.println("List of Section Names: " + sectionNames + "\n");
I got the following output:
List of Section Names: [02, 02/2018]
where "02" is mistakenly parsed as a section.
Is this a bug or am I using the API properly?
From the documentation at http://ini4j.sourceforge.net/tutorial/IniTutorial.java.html
You should be using the Wini class instead of the Ini class