mirror of
https://github.com/status-im/react-native-fs.git
synced 2025-03-01 07:20:33 +00:00
update README
This commit is contained in:
parent
a39c22be81
commit
907785a9b8
@ -365,7 +365,7 @@ Note: you will take quite a performance hit if you are reading big files
|
|||||||
|
|
||||||
### `read(filepath: string, length = 0, position = 0, encodingOrOptions?: any): Promise<string>`
|
### `read(filepath: string, length = 0, position = 0, encodingOrOptions?: any): Promise<string>`
|
||||||
|
|
||||||
Reads length bits from the given position of the file and returns contents. `encoding` can be one of `utf8` (default), `ascii`, `base64`. Use `base64` for reading binary files.
|
Reads `length` bytes from the given `position` of the file at `path` and returns contents. `encoding` can be one of `utf8` (default), `ascii`, `base64`. Use `base64` for reading binary files.
|
||||||
|
|
||||||
Note: reading big files piece by piece using this method may be useful in terms of performance.
|
Note: reading big files piece by piece using this method may be useful in terms of performance.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user