OpenWGA 7.7 - TMLScript reference
WGA » WGA.File()Method :
asString([encoding])
On object | WGA.File() |
Usage | Returns the content of the referenced file as String |
Parameters |
encoding (String, optional) The encoding to be used. Default is the configured OpenWGA output encoding (normally UTF-8) |
Return value |
The file content as String |
Examples |
var text = WGA.File("some-file.txt").asString() |