27 std::ifstream input(inPath.string().c_str(), std::ios::in | std::ios::binary | std::ios::ate);
30 std::ifstream::pos_type size = input.tellg();
31 outString.resize(size);
33 input.seekg(0, std::ios::beg);
34 input.read(const_cast<char*>(outString.data()), size);
bool readFileIntoString(const boost::filesystem::path &inPath, std::string &outString)
Read the raw contents of the specified file into a std::string.
Header for Boost.Test helper functions.
boost::filesystem::path path
bool fileContentsAreEqual(const boost::filesystem::path &inA, const boost::filesystem::path &inB)
Compare the raw contents of two files to determine whether they are identical.