WriteFileText Procedure

Creates or overwrites a text file with the contents of a string. Use ReadFileText to read the contents of a text file back into a string.
Declaration
sub WriteFileText(
filePath as String, text as String
)

Parameters

Possible error codes

Example

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