function ReadTextFile(filename)


This function reads a text file and returns its entire contents as a string.

If the file doesn't exist or if the operating system returns an I/O error, this function returns an empty string.


Example:

{
 var fileContents = ReadTextFile('./docs/somefile.txt');
 Log(fileContents);
}