Pascal Scripting: LoadStringsFromFile

Prototype:

function LoadStringsFromFile(const FileName: String; var S: TArrayOfString): Boolean;

Description:

Loads the specified text file into the specified string array. UTF-8 encoded files with or without a BOM are also supported. Returns True if successful, False otherwise.

Remarks:

Use LoadStringsFromLockedFile to load even if the file is already opened for writing by another program.

See also:

LoadStringFromFile