Read File

The Read File activity is used to read a file and place its contents into the output of the activity.

Settings

Field Description
Read as

Representation type of content in the file you want to read. You can select from the following options:

  • Text

  • Binary

    With 'Text', output 'textContent' will hold the plain string. With 'Binary', output 'binaryContent' will hold the base64 encoded string.

Uncompress

This field specifies whether to uncompress the file using GUnZip format. Select GUnzip to unzip the file. Choose None for no decompression.

Input

The Input tab displays the following fields:

Field Description
fileName

The name and path of the file to read.

For example: /opt/tibco/flogo/filename

Output

The output schema displays the metadata fields and the file content of the file in a read-only format. This object contains fileContent in either text or binary and metadata fields like fullPath, name, size, mode, modTime and isDir.

Loop

Refer to the section on "Using the Loop Feature in an Activity" in the TIBCO Flogo® Enterprise User Guide for information on the Loop tab.