[#FlatFileSeq-Flush] = xref:FlatFileSeq.adoc[FlatFileSeq]::Flush :relfileprefix: ../ :mrdocs: Commit a file to disk, and optionally truncate off extra pre‐allocated bytes if final. == Synopsis Declared in `<flatfile.h>` [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. == Parameters [cols="1,4"] |=== | Name| Description | *pos* [in] | The first unwritten position in the file to be flushed. | *finalize* [in] | True if no more data will be written to this file. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#