Uint8Array containing the data to write to the file.
Optional
offset: null | numberOffset in the buffer to start reading data from.
Optional
length: null | numberThe amount of bytes to write to the file.
Optional
position: null | numberOffset from the beginning of the file where this data should be written. If position is null, the data will be written at the current position.
Optional
position: null | numberOptional
encoding: null | BufferEncoding
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 it to return.