[#kernel-BlockTreeDB-ReadLastBlockFile]
= xref:kernel.adoc[kernel]::xref:kernel/BlockTreeDB.adoc[BlockTreeDB]::ReadLastBlockFile
:relfileprefix: ../../
:mrdocs:

Read the number of the last block file in use&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
ReadLastBlockFile(int& nFile);
----

== Return Value

True on success, false if the value could not be read&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *nFile*
| Output filled with the last block&hyphen;file number&period;
|===


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