stringlistcontainer LoadFromFile method
Return to Introduction  Previous page  Next page
Applies to
acStringListContainer component.  

Declaration
procedure LoadFromFile(const FileName: String);  

Description
The LoadFromFile method fills the list with the lines of text in a specified file.  
 
Call LoadFromFile to fill the list from the file specified by FileName. 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.  

See also
SaveToFile, LoadFromRegistry, StoreToRegistry and Add methods;  
Strings, Names, Values, MaxSize and Duplicates properties.