I'm playing around with QINI and I have no problems adding segments adding strings modifying values.. but when it comes to removing things i just can't figure it out.. anyone else who have any information about this?
Since .INI is a simple text file, we may manually remove the whole section:
1) Search string "[section name]" from the whole INI file and get the start position p1. 2) Search "[" from p1 to get the start of the next section p2. If it's the last section, it should be the length of file. 3) Replace the string between p1 to p2 by null.
Note [ and ] can not appear in parameter name or value. Otherwise you must escape them, for example, "L" for "[" and "R" for "]" etc.
You may contact the QINI author to update it by this algorithm :)