RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomTreeView.LoadFromFile Method

Reads the file specified in FileName and loads the data into the tree view.

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

Use the LoadFromFile method to retrieve tree view nodes from a file and add them to the tree view. FileName should reference a file that was saved using the SaveToFile 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!