read_file

Function

ArgDescriptionType
lengthMax length of the file to read.int
offsetWhere to read from the file.int64
filenameOne or more files to open.OSPath (required)
accessorAn accessor to use.string

Required permissions:FILESYSTEM_READ

Description

Read a file into a string.

read_file

Plugin

ArgDescriptionType
chunklength of each chunk to read from the file.int
max_lengthMax length of the file to read.int
filenamesOne or more files to open.list of OSPath (required)
accessorAn accessor to use.string

Required permissions:FILESYSTEM_READ

Description

Read files in chunks.

This plugin reads a file in chunks and returns each chunks as a separate row.

It is useful when we want to report file contents for small files like configuration files etc.

The returned row contains the following columns: data, offset, filename