Skip to content

FileContent Operator

Martin Danielsson edited this page Jul 23, 2015 · 2 revisions

With the FileContent operator, you can read a specific amount of characters from a file; the content will be treated as a string, which may or may not be what you need. This operator may be used to read text from files, too.

What Type
Syntax FileContent(fileName, length)
fileName string
length int
Return type string

The fileName parameter will be resolved using the Resolving File Names strategy; see also FileResolve Operator. The length parameter gives the (maximum) number of characters to read from the file. If you want to read entire files, pick a large enough number here.

Clone this wiki locally