*TOOLS/READFILE Return Binary Data into Output String
Invocation
CALL "*tools/readfile", filename$, outputfiledata$
Where:
filename$ | Name of the file to read. |
outputfiledata$ | Output string where the file data is returned. |
Description
Read the entire binary contents of a file and return the data in the output string.
(The ReadFile utility was added in PxPlus 2021.)
Example
In this example, the utility will read the file addresses.xml and output the contents of this file into addressxml$:
call "*tools/readfile","addresses.xml",addressxml$