[#FlatFileSeq-Flush]
= xref:FlatFileSeq.adoc[FlatFileSeq]::Flush
:relfileprefix: ../
:mrdocs:

Commit a file to disk, and optionally truncate off extra pre&hyphen;allocated bytes if final&period;

== Synopsis

Declared in `&lt;flatfile&period;h&gt;`

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

== Return Value

true on success, false on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *pos* [in]
| The first unwritten position in the file to be flushed&period;
| *finalize* [in]
| True if no more data will be written to this file&period;
|===


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