File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -828,7 +828,7 @@ default value of 64 kb for the same parameter.
828
828
829
829
` options ` can include ` start ` and ` end ` values to read a range of bytes from
830
830
the file instead of the entire file. Both ` start ` and ` end ` are inclusive and
831
- start at 0. The ` encoding ` can be ` 'utf8' ` , ` 'ascii' ` , or ` 'base64' ` .
831
+ start at 0. The ` encoding ` can be any one of those accepted by [ Buffer ] ( buffer.html ) .
832
832
833
833
If ` fd ` is specified, ` ReadStream ` will ignore the ` path ` argument and will use
834
834
the specified file descriptor. This means that no ` open ` event will be emitted.
@@ -873,8 +873,7 @@ Returns a new WriteStream object (See `Writable Stream`).
873
873
` options ` may also include a ` start ` option to allow writing data at
874
874
some position past the beginning of the file. Modifying a file rather
875
875
than replacing it may require a ` flags ` mode of ` r+ ` rather than the
876
- default mode ` w ` . The ` defaultEncoding ` can be ` 'utf8' ` , ` 'ascii' ` , ` binary ` ,
877
- or ` 'base64' ` .
876
+ default mode ` w ` . The ` defaultEncoding ` can be any one of those accepted by [ Buffer] ( buffer.html ) .
878
877
879
878
Like ` ReadStream ` above, if ` fd ` is specified, ` WriteStream ` will ignore the
880
879
` path ` argument and will use the specified file descriptor. This means that no
You can’t perform that action at this time.
0 commit comments