26 const std::vector<uint8_t>& vec,
const std::string& fileName);
33 std::vector<uint8_t>& out_data,
const std::string& fileName);
39 bool loadTextFile(std::vector<std::string>& o,
const std::string& fileName);
bool vectorToBinaryFile(const std::vector< uint8_t > &vec, const std::string &fileName)
Saves a vector directly as a binary dump to a file:
bool loadBinaryFile(std::vector< uint8_t > &out_data, const std::string &fileName)
Loads a entire file as a vector of bytes.
bool loadTextFile(std::vector< std::string > &o, const std::string &fileName)
Loads a text file as a vector of string lines.
std::string file_get_contents(const std::string &fileName)
Loads an entire text file and return its contents as a single std::string.