Ini ini = new Ini(); ini.setComment(" Main comment "); //comment about the file //add a section comment, a section and a value ini.putComment("mySectionX", " Comment about the section"); ini.put("mySectionX", "myKey1", "value1"); //adding many parameters at one in a section String[] keyList = {value1, value2, value3}; ini.add("mySectionY"); Ini.Section names = ini.get("mySectionY"); names.putAll("myKey1", keyList); //put all new elements at once ... ini.store(new File(iniFileName));