doc: document fs.createReadStream() encodings

Fixes #2700.
This commit is contained in:
Zachary Scott authored and Ben Noordhuis committed 2012-03-26 00:25:45 +02:00
1 parent 83aae35b8e
commit 0dd8e0167d
1 file changed
+1 -1
+1 -1
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: