ReadFileText Procedure

Reads the contents of a file as a string. Use WriteFileText to write a string to a file.
Declaration
function ReadFileText(filePath as String) as String

Parameters

Return value

String — The contents of the file.

Possible error codes

Example

Code
WriteFileText "myfile.txt", "Hello!"
print ReadFileText("myfile.txt")
Output
Hello!