MCPcopy Create free account
hub / github.com/bakwc/JamSpell / LoadFile

Function LoadFile

jamspell/utils.cpp:22–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20namespace NJamSpell {
21
22std::string LoadFile(const std::string& fileName) {
23 std::ifstream in(fileName, std::ios::binary);
24 std::ostringstream out;
25 out << in.rdbuf();
26 return out.str();
27}
28
29void SaveFile(const std::string& fileName, const std::string& data) {
30 std::ofstream out(fileName, std::ios::binary);

Callers 3

FixFunction · 0.85
TrainMethod · 0.85
LoadAlphabetMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected