Read a file
herdr_file_readRead lines from a text file on a local or remote machine, starting at a chosen offset and capped by a limit, and return the content plus total line count.
Instructions
Read a text file here or on another machine: lines from offset, at most limit. Returns the text and how many lines the file has.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| on | No | Another machine (see herdr_machines); default: this one. | |
| cwd | No | Working directory. Default: the core's; on another machine, its home. | |
| path | Yes | Absolute, or from cwd. | |
| limit | No | At most this many lines. | |
| offset | No | The first line to give, from 1. |