[#node-BlockManager-OpenBlockFile]
= xref:node.adoc[node]::xref:node/BlockManager.adoc[BlockManager]::OpenBlockFile
:relfileprefix: ../../
:mrdocs:

Open a block file (blk?????&period;dat)

== Synopsis

Declared in `&lt;node&sol;blockstorage&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:AutoFile.adoc[AutoFile]
OpenBlockFile(
    xref:FlatFilePos.adoc[FlatFilePos] const& pos,
    bool fReadOnly) const;
----

== Return Value

An open file handle for the block file&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos*
| Position identifying the block file and offset&period;
| *fReadOnly*
| Whether to open the file read&hyphen;only&period;
|===


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