I'm trying to make a system that allows me to load, read, write and save ini files.
Ive got this code for my ini class which loads the file and can also save the file.
However I'm not sure on how to prase the text that is being loaded and store the data.
I need it so I can have functions like "string get_value(string section, string key)" as well as functions for creating a new section/key and checking if one exits (eg "bool exists_section(string section) or "bool exists_key(string section, string key)")
I have no idea how to do this. I can probebly put togerther something to get the sections and keys from the file line by line but then how do I store them and how can I "insert" news ones into it?