readTextFile function

Syntax

  • string readTextFile(filePath)

Parameters

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

Returns

The content of filePath as a string.

Description

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

Related


In this topic