I've created an ADT for a quad tree in C. I'm using this quad tree to represent an image.
I'm using a preorder traversal algorithm which recursively scans through the tree and prints nodes and RGB values to file.
I'm storing the quad-tree in file as the following for an example:
R - Tree root
B - Tree branch
then the RGB values
How could I read back this data from the file and create a the same tree? Is this possible?
Does this make sense?