Optional offset: null | numberOptional length: null | numberOptional position: null | 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: null | numberThe offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position.
Optional encoding: null | 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.