I am trying to get the data in my binary tree to write to a file "officeEquipment.dat"
I am not certain how to go about this. I have done file I/O before with
Expand|Select|Wrap|Line Numbers
- file.write(reinterpret_cast<const char *>(&whatever), sizeof(WHATEVER));
I am currently trying to get the following to write, but I'm not sure what I am doing wrong:
Expand|Select|Wrap|Line Numbers
- file.write(reinterpret_cast<const char *>(&rt_ptr), sizeof(binary_tree_node<string>));
binary_tree_node<string>* rt_ptr;
if you have enough info... could someone please give me an example of how I would get this to write to the file I have created?
I have been messing with this program for 2 days :(
Thank you!