I'm making a program on batch with a lot of data values. I need to load them in chunks, but I'll probably end up saving them all together. How would I load them from a specific group if I loaded values to the .sav file using this format?
(
echo "[playerdata]"
echo playername=%playername%
echo playerlevel=%playerlevel%
echo "[inventory]"
echo playerslotone=%playerslotone%
echo plrslot1amnt=%plrslot1amnt%
) > savegame.sav
I might need to remove the quotations from the [player data] and [inventory] headers. This is just an example there will be more values and more segments. I need to load an exact value from a segment, like you would from an ini.(But not from an InI) Technoguyfication used this format in his ini file in his response to [Save and Load .bat game] Any help is appreciated. I'm a severe beginner so please consider this.
I'm sorry if this seems to be a duplicate. It shouldn't be, as I'm loading and saving from a .sav file, and using a new path as opposed to just a command. Compo's response was extremely helpful in this situation. I could be wrong, as I said I'm a severe beginner.
My apologies, and thanks.