FIO_ReadWholeFile
%FIO_ReadWholeFile function
Function | The function reads a specified file and inserts its contents into a variable of Text type. | ||||
Declaration | TEXT %FIO_ReadWholeFile(
TEXT in fileName
[,TEXT in encoding = "@APP_DEFAULT@"]
) | ||||
Parameters |
| ||||
Return value |
The function returns the contents of the specified file. | ||||
Note | The function uses binary mode to read the file. | ||||
Example | BEGIN
TEXT _data
_data := %FIO_ReadWholeFile("c:\datafile")
END |
Related pages: