RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.SaveToFile Method

Saves a the tree view to the file specified in FileName.

Pascal
procedure SaveToFile(const FileName: string);
C++
__fastcall SaveToFile(const AnsiString FileName);

Use the SaveToFile method to store tree view data to a text file. The nodes can later be reloaded from the file into a new tree view object using the LoadFromFile method. 

Tree view files are text files that list the Text property of each node in a tree view, one node per line. Each node text value is preceded by spaces to indicate the depth of nesting.

Note: Tree view files contain only the text of the tree view nodes. They do not contain any data associated with the nodes.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!