Saving and loading a Multi-dimensional array

How would I go about saving arrays that have multiple dimensions?
I'm planning on having a weapon system that has stats based off this. For example:
If there is a better way of doing this I'd love to know it
- Code: Select all
arra[type][number[value]
I'm planning on having a weapon system that has stats based off this. For example:
- Code: Select all
int ITEM_ARRAY[type][ID_number][Cost][stat1][stat2][stat3][stat4][stat5][stat6][stat7][stat8][stat9]
If there is a better way of doing this I'd love to know it
