File tree 1 file changed +6
-0
lines changed 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -2917,6 +2917,9 @@ If `position` is an integer, the file position will remain unchanged.
2917
2917
2918
2918
The callback is given the three arguments, ` (err, bytesRead, buffer) ` .
2919
2919
2920
+ If the file is not modified concurrently, the end-of-file is reached when the
2921
+ number of bytes read is zero.
2922
+
2920
2923
If this method is invoked as its [ ` util.promisify() ` ] [ ] ed version, it returns
2921
2924
a ` Promise ` for an ` Object ` with ` bytesRead ` and ` buffer ` properties.
2922
2925
@@ -4677,6 +4680,9 @@ Following successful read, the `Promise` is resolved with an object with a
4677
4680
` bytesRead ` property specifying the number of bytes read, and a ` buffer `
4678
4681
property that is a reference to the passed in ` buffer ` argument.
4679
4682
4683
+ If the file is not modified concurrently, the end-of-file is reached when the
4684
+ number of bytes read is zero.
4685
+
4680
4686
#### ` filehandle.read(options) `
4681
4687
<!-- YAML
4682
4688
added:
You can’t perform that action at this time.
0 commit comments