Pascal Scripting: LoadStringFromFile

Prototype

function LoadStringFromFile(const FileName: String; var S: AnsiString): Boolean;

Description

Loads the specified binary or non Unicode text file into the specified string. Returns True if successful, False otherwise.

Remarks

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

See also

LoadStringsFromFile