Forum Discussion
Dmitry_Nikolaev
14 years agoStaff
Hi Brave,
Please note that DelphiScript and Delphi are different languages, and many Delphi features are unavailable in its script version. Please find more information in the DelphiScript Description help topic.
You can read the content of a text file into a variable using the aqFile object (see the aqFile Object topic).
procedure test;
const
fileName = 'c:\textfile.txt';
var
textVar;
begin
textVar := aqFile.ReadWholeTextFile(fileName, aqFile.ctANSI);
Log.Message('See the file content in the Remarks pane', textVar);
end;