MCPcopy Create free account
hub / github.com/REGoth-project/REGoth / readFileContents

Method readFileContents

src/utils/Utils.cpp:276–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276std::string Utils::readFileContents(const std::string& file)
277{
278 std::ifstream f(file);
279 std::stringstream ss;
280 ss << f.rdbuf();
281
282 return ss.str();
283}
284
285std::vector<std::uint8_t> Utils::readBinaryFileContents(const std::string& file) {
286 std::ifstream inputStream(file, std::ios::binary | std::ios::ate);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected