[#BloombergLP-bdls-FdStreamBuf_FileHandler-write] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf_FileHandler.adoc[FdStreamBuf_FileHandler]::write :relfileprefix: ../../../ :mrdocs: Write the specified `buffer`, containing the specified `numBytes`, to the file descriptor starting at the current position. Return 0 on success, and a non‐zero value otherwise. The behavior is undefined unless `0 <= numBytes`. Note that on Windows in text mode, a ` ` is written as `\r ` and counts as one character. == Synopsis Declared in `<bdls_fdstreambuf.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int write( char const* buffer, int numBytes); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#