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