loadStrings(file, [userAgent])

Reads the contents of a file or loads an URL and creates a string array of its individual lines. 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:

  • {Array}:

    Array of the individual lines in the given file or URL