How can I make a copy of a tree data structure in memory to disk in C programming language?
The basic pieces here are:
That should be about all the info you need to do the job.
Alternatively, if you use an array-based tree (with array indexes instead of pointers, or with the links implied by their position in the array) you could just save and load the whole shebang without any further logic required.