[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'LazUTF8Classes' (#lazutils)

TStringListUTF8.LoadFromFile

Loads the content in the string list from the specified file.

Declaration

Source position: lazutf8classes.pas line 30

public procedure TStringListUTF8.LoadFromFile(

  const FileName: string

); override;

Arguments

FileName

  

File name with content for the string list.

Description

LoadFromFile is a procedure used to load the content in the string list from the specified file name. FileName can contain UTF-8-encoded characters. LoadFromFile uses a TFileStreamUTF8 instance to open and read the contents of FileName, and calls LoadFromStream to store the values in the string list.

See also

TStrings.LoadFromFile