Skip to main content
Reads the contents of an input file and pushes the data out as an attribute on the output item.

Required Parameters

  • file: The name of the file to read.

Optional Parameters

  • encoding: The strategy used to convert the file’s raw bytes into a string. If a standard charset (UTF-8, ASCII, etc) is provided, the operation will decode the supplied bytes using the provided charset. If a binary value such as (BASE64, HEX, etc) is provided, the operation will encode the raw bytes using the provided value. Values for the encoding parameter that are generally supported by most operating systems and JVMs include UTF-8, ASCII, BASE64, HEX, windows-1252, and ISO-8859-2. The default is UTF-8.

Output Attributes

  • file:data: The data from the input file.

Examples

Change the Encoding of an Input File

Replace Commas with Pipe Characters ( | )