Skip To Content

readTextFile function

Synopsis

  • string readTextFile(string filePath)

Parameters

  1. filePath
    Text file. Supported extensions are .txt and .csv, and supported encodings are ASCII, UTF-8 and UTF-16. Lineendings are converted to '\n', unprintable control characters are replaced with '?'.

Returns

The content of filePath as a string.

Description

The readTextFile function reads the text file filePath. The same search logic as for geometry assets and textures is applied.

Related


In this topic