Reads a file and return raw content as a string
- Service:
CleverAge\ProcessBundle\Task\File\FileReaderTask
Input is ignored
string
: raw content of the file.
Underlying method is file_get_contents.
Code | Type | Required | Default | Description |
---|---|---|---|---|
filename |
string |
X | Path of the file to read from (absolute) |
# Task configuration level
code:
service: '@CleverAge\ProcessBundle\Task\File\FileReaderTask'
options:
filename: 'path/to/file.txt'