Read file content.
Text files are paginated by line offset/limit. Binary files return full Uint8Array content (offset/limit ignored).
read(
filePath: string,
offset: number = 0,
limit: number = 500
): Promise<ReadResult>| Name | Type | Description |
|---|---|---|
filePath* | string | Absolute file path |
offset | number | Default: 0Line offset to start reading from (0-indexed) |
limit | number | Default: 500Maximum number of lines to read |