Please enable JavaScript to view this site.

Codolex

The read file activity can be used to read content from a file

uses System.IOUtils.TFile.ReadAllText

uses System.Classes.TStrings.LoadFromFile

 

FileReed

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.

© by GDK Software