I need to store which spells a character knows. While the game is executing I have them stored in a vector. Obviously storing this many values is either going to take a lot of computing to get the file size smaller or simply a large file size.
My best bet was to convert the vector into a single long int variable to store in the file. This will work out fine until there are too many spells to contain in a single variable.
I could split it up into multiple values but I was just wondering if there was a better way to accomplish that or if I should simply store the full list (strings, ints, etc.) in a text file and deal with the slightly large file size.
I'm using c++.