read(
filePath: string,
offset: number,
limit: number
): MaybePromise<ReadResult>| Name | Type | Description |
|---|---|---|
filePath* | string | Absolute file path |
offset | number | Line offset to start reading from (0-indexed), default 0 |
limit | number | Maximum number of lines to read, default 500 |
Read file content.
For text files, content is paginated by line offset/limit. For binary files, the full raw Uint8Array content is returned.