Uint8Array containing the data to write to the file.
Offset in the buffer to start reading data from.
The amount of bytes to write to the file.
Optional
cb: Callback<[number, Uint8Array]>The number specifies the number of bytes written into the file.
Optional
position: numberOptional
cb: Callback<[number, Uint8Array]>Optional
cb: Callback<[number, string]>Optional
position: numberOptional
cb: Callback<[number, string]>Optional
cb: Callback<[number, string]>
Write buffer to the file specified by
fd
. Note that it is unsafe to use fs.write multiple times on the same file without waiting for the callback.