*TOOLS/READFILE |
Return Binary Data into Output String |
CALL "*tools/readfile", filename$, outputfiledata$
Where:
filename$ |
Name of the file to read. |
outputfiledata$ |
Output string where the file data is returned. |
Read the entire binary contents of a file and return the data in the output string.
(The ReadFile utility was added in PxPlus 2021.)
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$