readTextFile function

string readTextFile(filePath)

filePath string Name of the text file to read. See Asset Search for information about search locations. Supported extension is .txt.

The content of filePath as a string.

The readTextFile function reads the text file filePath. Supported encodings are ASCII, UTF-8 and UTF-16. Line endings are converted to \n, and unprintable control characters are replaced with ?.

Related