LoadFile

Load a local file from disk on the server.

var strFile = LoadFile(strPathAndFilename);

Parameters

  • strPathAndFilename : [in] String, path and file name of file to be loaded, relative to the current directory of server execution.

 

Return Values

String containing the contet of the file or null if file can not be read.

 

Remarks

This function supports UNIX path names on Windows platforms and vice versa.

 

Example

var strFile = LoadFile("/xxs/samples/xml/output.xml");
var strFile = LoadFile(".\output.xml");