Using XML? My own binary system? A paint by number scheme?
Somehow, I have no idea how, I have to read structured data from a file. I've been pointed to XML, I can understand how this would work, but another poster suggested I make my own hierarchy, and stated:
Quote:
It could be as simple as assigning a number to each node, and then when you store the nodes in the file you reference pointers to children by using their number. Then when reading the nodes from the file, you restore all the pointers after the nodes are loaded.
This seems really easy to do, but that doesn't mean I even know where to begin code wise. I'd rather do this over xml because if I used xml then I'd need something like Tiny-XML to parse it and that I feel would be overdoing it. My questions seem simple, but really they are overly complex in my opinion.
1. What do my data files need to look like?
2. How do I create them?
3. How do I load them?