The read file activity can be used to read content from a file
uses System.IOUtils.TFile.ReadAllText
uses System.Classes.TStrings.LoadFromFile
Activity properties
begin var FileContent: string; FileContent := TFile.ReadAllText(FileName); end; |
Resulting code
Depending on Data type, the return value is a string or binary.