[#WriteBinaryFile]
= WriteBinaryFile
:mrdocs:

Write contents of std&colon;&colon;string to a file&period;

== Synopsis

Declared in `&lt;util&sol;readwritefile&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
WriteBinaryFile(
    xref:fs/path.adoc[fs::path] const& filename,
    std::string const& data);
----

== Return Value

true on success&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *filename*
| Path of the file to write&period;
| *data*
| Bytes to write to the file&period;
|===


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