binary search tree in a file
hello everyone,
I need help in writing a binary search tree into a text file and
later, search the nodes in the file by using search function
in the program.
I have a binary search tree i.e.,
7
/\
59
/\/\
36 810
to be changed into ....
file.txt
=====
7
5
9
3
6
8
10
To search the node 3 in the file, I have to start from the root 7 and then to its left node 5 and then to its left node 3.
Could anyone help me with an indexing approach to keep track of the nodes in the file.
Thanks in advance

