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

LoadStringsFromFileUTF8 (deprecated)

Loads the content for a TStringList from the specified file name.

Declaration

Source position: lazutf8classes.pas line 42

procedure LoadStringsFromFileUTF8(

  List: TStrings;

  const FileName: string

);

Arguments

List

  

TStrings descendant where the content is stored.

FileName

  

File name with the content to load in the string list.

Description

LoadStringsFromFileUTF8 is a procedure used to load the content for a string list from the specified file name.

List is the TStrings decendant where the content from FileName is stored. FileName can contain UTF-8-encoded characters.

LoadStringsFromFileUTF8 creates an internal TStringListUTF8 instance (when needed) that is used to load the content in FileName, and calls the Assign method in List to store the values.