5#ifndef BITCOIN_UTIL_READWRITEFILE_H
6#define BITCOIN_UTIL_READWRITEFILE_H
24std::pair<bool, std::string>
26 size_t maxsize = std::numeric_limits<size_t>::max());
Path class wrapper to block calls to the fs::path(std::string) implicit constructor and the fs::path:...
bool WriteBinaryFile(const fs::path &filename, const std::string &data)
Write contents of std::string to a file.
std::pair< bool, std::string > ReadBinaryFile(const fs::path &filename, size_t maxsize=std::numeric_limits< size_t >::max())
Read full contents of a file and return them in a std::string.