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.
If buffer
is a plain object, it must have an own (not inherited) toString
function property.
For detailed information, see the documentation of the asynchronous version of this API: write.
v0.0.67
The number of bytes written.
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.
Generated using TypeDoc
If
buffer
is a plain object, it must have an own (not inherited)toString
function property.For detailed information, see the documentation of the asynchronous version of this API: write.
Since
v0.0.67
Returns
The number of bytes written.