WriteBinaryFile

Write contents of std::string to a file.

Synopsis

Declared in <util/readwritefile.h>

bool
WriteBinaryFile(
    fs::path const& filename,
    std::string const& data);

Return Value

true on success.

Parameters

NameDescription
filenamePath of the file to write.
dataBytes to write to the file.