RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomOutline.SaveToFile Method (string)

Saves the Lines property to a file.

Pascal
procedure SaveToFile(const FileName: string); overload;
procedure SaveToFile(const FileName: string; Encoding: TEncoding); overload;
C++
__fastcall SaveToFile(const AnsiString FileName);
__fastcall SaveToFile(const AnsiString FileName, TEncoding Encoding);

Call SaveToFile to save a text image of the outline to the file specified by the FileName parameter. The image saved is the value of the Lines property, where each line of the file represents a node, and each level of the outline is represented by a tab character. 

To write the outline to an arbitrary stream, use the SaveToStream method. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!