A file descriptor.
Optional buffer: TBufferOptional offset: numberThe part of the buffer to be written. If not supplied, defaults to 0.
Optional length: numberThe number of bytes to write. If not supplied, defaults to buffer.length - offset.
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.
Asynchronously writes string to the file referenced by the supplied file descriptor.
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.
Asynchronously writes
bufferto the file referenced by the supplied file descriptor.