| 20 | namespace NJamSpell { |
| 21 | |
| 22 | std::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 | |
| 29 | void SaveFile(const std::string& fileName, const std::string& data) { |
| 30 | std::ofstream out(fileName, std::ios::binary); |
no outgoing calls
no test coverage detected