Doc fix for fs.write
Closes GH-808 Closes GH-811
This commit is contained in:
parent
f0d0fcc4aa
commit
5e78f57087
@ -230,6 +230,10 @@ See pwrite(2).
|
|||||||
The callback will be given two arguments `(err, written)` where `written`
|
The callback will be given two arguments `(err, written)` where `written`
|
||||||
specifies how many _bytes_ were written.
|
specifies how many _bytes_ were written.
|
||||||
|
|
||||||
|
Note that it is unsafe to use `fs.write` multiple times on the same file
|
||||||
|
without waiting for the callback. For this scenario,
|
||||||
|
`fs.createWriteStream` is strongly recommended.
|
||||||
|
|
||||||
### fs.writeSync(fd, buffer, offset, length, position)
|
### fs.writeSync(fd, buffer, offset, length, position)
|
||||||
|
|
||||||
Synchronous version of buffer-based `fs.write()`. Returns the number of bytes
|
Synchronous version of buffer-based `fs.write()`. Returns the number of bytes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user