Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 868 Bytes

file_reader_task.md

File metadata and controls

40 lines (27 loc) · 868 Bytes

FileReaderTask

Reads a file and return raw content as a string

Task reference

  • Service: CleverAge\ProcessBundle\Task\File\FileReaderTask

Accepted inputs

Input is ignored

Possible outputs

string: raw content of the file. Underlying method is file_get_contents.

Options

Code Type Required Default Description
filename string X Path of the file to read from (absolute)

Example

# Task configuration level
code:
  service: '@CleverAge\ProcessBundle\Task\File\FileReaderTask'
  options:
    filename: 'path/to/file.txt'