loadString(file, [userAgent])
Reads the contents of a file or loads an URL into a String. If the file is specified by name as string, the path can point either directly at a file in the document’s data directory or be specified as an absolute path.
Type: function
Parameter(s):
- file {String | File}:
The text file name in the document’s data directory or a File instance or an URL
- userAgent {String} Optional:
Optional parameter when URL is used, to specify a user-agent making request.
Returns:
-
{String}:
String file or URL content.