Right, for the next stage of my project, I'm going to need some sort of map system. My plan was to use an array of Uint8 (Unsigned, 8 bit integers - an extra type provided by the SDL library)
If I define it in a class, like this:
Code:
class world {
public:
Uint8 map[200][200]; };
How would I read/write the data to/from a file on disk? Should I use low-level file-managment stuff or high-level? What sort of things do I need to do?
I'm just starting really with C++ and I'm not sure how I should handle something like this. I've done file IO in stuff like basic and pascal, but I can see from what I've read that this is going to be 100x harder.
Any points on where to start, or what I need to do?