file

Purpose The file statement is used to read the contents of a file and return them as the return value of the statement.
Format file({file path});
{file path} the path or URL of the file being read.
Example #1 xout("MyFile contents are\r\n" + file("C:\\MyDir\\MyFile.xml"));

The file found in C:\MyDir\MyFile.xml is read and its contents are written to the output stream as follows:
MyFile contents are
{contents of the file...}

Example #2 xout("MyFile contents are\r\n" + file("http://MyServer/MyDir/MyFile.xml"));

The file found in http://MyServer/MyDir/MyFile.xml is read and its contents are written to the output stream as follows:
MyFile contents are
{contents of the file...}