read file( path a[, encoding b] )


Reads in file a with encoding b.

The maximum file size is 4 MB. Trying to read in bigger files will lead to an error. Note: Setting system property -Dhub.datawizard.filter.readFileMaxLength=512 (in ./bin/hub.bat for Windows and ./bin/execute.sh for Linux/Unix) allows you to increase the maximum size (here to 512 MB).

The data being read is cached. Subsequent calls of this function will use the data from there to prevent performance loss.

Description of Parameters


Parameter

Description

a

Relative or absolute file path and name. The file must exist and be readable, otherwise, the function will terminate with an error. Empty files are accepted. Note: When the same file is accessed repeatedly, the content is read from the cache to avoid performance loss.

b

(optional) Encoding that is used to read in the file. Default: UTF8