Please Update your bookmarks
The Delphi supplied SaveToFile and LoadFromFile methods, provide a very simple way to save a TreeView to / load it from a file. The problem with these methods is that they only save/load the TreeView structure.
You can not save the ImageIndex, SelectedIndex, Data or any other TTreeNote property. For this reason many people will never use these methods, and instead will look for something more advanced.
I personally use OLE Structured Storage to solve this problem. Structured Storage files, or DocFiles, support hierarchical data storage and thus are perfect for saving a TTreeView to disk. For an introduction to OLE Structured Storage, take a look at my DocFile Tutorial. Specifically the "Saving a TreeView to a DocFile" Example
All information on these www pages is copyright (©) 1997 Andre .v.d. Merwe And may not be copied or mirrored without my permission.