%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. If the size of the file is more than 5 MB or the files do not exist, the function returns an invalid value. | ||||
Note | The function uses binary mode to read the file. | ||||
Example | BEGIN TEXT _data _data := %FIO_ReadWholeFile("c:\datafile") END |
Related pages:
0 komentárov