need help in binary search tree - ap.pas (0/1)

>My project require me to write a pascal program to read a data file
>and store them in a binary search tree.
>1)  I 'm not sure how to read the data frm a file and store it in a

>2) write the data in the tree onto the file

>3) Add a data item into the tree.

>attached is the program i've done so far, could anyone please help me
>to clear my doubts or e-mail at  ....... A million thanks :)