[#BloombergLP-bdls-FdStreamBuf_FileHandler-fileSize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdls.adoc[bdls]::xref:BloombergLP/bdls/FdStreamBuf_FileHandler.adoc[FdStreamBuf&lowbar;FileHandler]::fileSize
:relfileprefix: ../../../
:mrdocs:

Return the size of the file associated with this file handler, or 0 if it is associated with a device other than a regular file (e&period;g&period;, a device or directory)&period;

== Synopsis

Declared in `&lt;bdls&lowbar;fdstreambuf&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::streamoff
fileSize() const;
----

== Return Value

the file size in bytes, or 0 if not a regular file


[.small]#Created with https://www.mrdocs.com[MrDocs]#
