RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStrings.LoadFromFile Method

Fills the list with the lines of text in a specified file.

Pascal
procedure LoadFromFile(const FileName: WideString); virtual;
C++
virtual __fastcall LoadFromFile(const BSTR FileName);

Call LoadFromFile to fill the list of the TWideStrings object from the file specified by FileName. LoadFromFile first clears any strings already in the list. Then, each line in the file, as indicated by carriage return or linefeed characters, is appended as a string in the list.

Note: LoadFromFile uses the Add method to add the strings that are read from the file.
 

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