I managed to write to and read a specific parameter from a .ini file.
I was wondering if there was a way to load the entire content of the .ini file and store it in a special class. That way, I only have to load the .ini file once. This way it should reduce the amount of loading that the game will do.
I know that in small games, it propably doesn’t matter, but I would still appreciate it if someone could point me in the right direction.
Assuming the INI is a simple key / value pair split with new line could you use something like this to provide the entire INI file as either a dictionary or a strongly typed object.
the method allows you to load an ini file into an object like this.
or simply in to a dictionary with the non T method.