Optional
offset: numberOptional
length: numberOptional
position: numberSynchronously writes string
to the file referenced by the supplied file descriptor, returning the number of bytes written.
A file descriptor.
A string to write.
Optional
position: numberThe offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
Optional
encoding: BufferEncodingThe expected string encoding.
For detailed information, see the documentation of the asynchronous version of this API: write.
Since
v0.1.21
Returns
The number of bytes written.