Posted on 2001-06-28
I am putting a small program together using Delphi 2 to use as a small address book.
I am using records to keep the information on each person together with their telephone number, address, etc and then using Write(File, Rec) to save the information.
i am using a treeview to hold letters from A to Z and i insert a record under each node letter and use the imageindex of the sibling node to hold the record number.
..Jones (imageindex = 2)
..Smith (imageindex = 1)
My problem is how can i save the contents of the treeview along with the information i enter as one file so it can be restored when i reload it at a later date.
Keep in mind i have included the ability to add and delete records to the program.
Anybody got any good ideas on how to do this?