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

LoadStringsFromFileUTF8

Loads the content for a TStringList from the specified file name

Declaration

Source position: lazutf8classes.pas line 49

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.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.