Skip to main content
Reads and enumerates over the contents of an input file on a line-by-line basis and pushes the data out as an output attribute.

Required Parameters

  • file: The name of the file to read.

Optional Parameters

  • separator: The character separator that determines each new line. The default value is the newline character (\n).
  • encoding: The encoding to use. The allowed values are determined by the JVM/OS being used. Values for encodings that are generally supported by most operating systems and JVMs include UTF-8, ASCII, BASE64, windows-1252, and ISO-8859-2. The default is UTF-8.

Output Attributes

  • file:line: The line number of the file.
  • file:data: The data from the input file.

Example

This example replaces some data from the first line only.