readTextFile function

This 2019.0 documentation has been archived and is no longer updated. Content and links may be outdated. See the latest documentation.

Syntax

  • 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