RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStrings.LoadFromStream Method

Fills the list with lines of text read from a stream.

Pascal
procedure LoadFromStream(Stream: TStream); virtual;
C++
virtual __fastcall LoadFromStream(TStream Stream);

Call LoadFromStream to fill the list of the TWideStrings object from the stream specified by Stream. The text read from the stream is parsed into strings separated by carriage return or linefeed characters. Thus, LoadFromStream reads the value of the Text property. 

If the stream is a file stream, LoadFromStream does the same thing as LoadFromFile, except the application must create and destroy the file stream. 

 

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