update README

This commit is contained in:
Samet Demir 2017-07-16 15:32:53 +03:00
parent a39c22be81
commit 907785a9b8

View File

@ -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.