Hi everyone,
I made a script that uses a .cfg file, with the cfg.setvalue et cfg.getvalue functions. In that script, I'd like to load this file into an array like this :
My .cfg file :
[Lua Config File]
pikachu=46
Baruch=-15
My array :
{pikachu = 46 ; Baruch = -15}
The problem is that getvalue doesn't make it possible, because I don't know the indexes in the .cfg file.
Is there any solution to go through every line of the .cfg file ? (something like next())
I've seen that Sveark bypassed this problem by merging all the lines into one big line, and using separators. I'd like to avoid this solution, because I still want to be able to modify one line of my table without the need of loading everything.
Thank you