doc: document fs.createReadStream() encodings

Fixes #2700.
pull/24503/head
Zachary Scott 2012-03-24 21:32:32 +00:00 committed by Ben Noordhuis
parent 83aae35b8e
commit 0dd8e0167d
1 changed files with 1 additions and 1 deletions

View File

@ -586,7 +586,7 @@ Returns a new ReadStream object (See `Readable Stream`).
`options` can include `start` and `end` values to read a range of bytes from
the file instead of the entire file. Both `start` and `end` are inclusive and
start at 0.
start at 0. The `encoding` can be `'utf8'`, `'ascii'`, or `'base64'`.
An example to read the last 10 bytes of a file which is 100 bytes long: