impure functionreadFile

Returns the contents of a file.

Information

Returns the contents of a file as a string or an empty string if the file couldn't be read. If the file couldn't be read an error message is emitted which can be viewed with getErrorString().

Inputs

TypeNameDefaultDescription
StringfileName

Outputs

TypeNameDefaultDescription
Stringcontents