Go to the documentation of this file.
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);
std::string file_get_contents(const std::string &fileName)
Loads an entire text file and return its contents as a single std::string.
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.
bool vectorToBinaryFile(const std::vector< uint8_t > &vec, const std::string &fileName)
Saves a vector directly as a binary dump to a file:
Page generated by Doxygen 1.8.17 for MRPT 2.0.3 at Thu May 21 21:53:32 UTC 2020 | |