[#BloombergLP-bdls-FilesystemUtil-read] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FilesystemUtil.adoc[FilesystemUtil]::read :relfileprefix: ../../../ :mrdocs: Read the specified `numBytes` bytes beginning at the file pointer of the file with the specified `descriptor` into the specified `buffer`. Return `numBytes` on success; the number of bytes read if there were not enough available; or a negative number on some other error. == Synopsis Declared in `<bdls_filesystemutil.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static int read( xref:BloombergLP/bdls/FilesystemUtil/FileDescriptor.adoc[FileDescriptor] descriptor, void* buffer, int numBytes); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#