| 196 | ///////////////////////////////////////// |
| 197 | |
| 198 | bool readFileToString(const std::string& file_name, std::string* output) { |
| 199 | File* file = File::open(file_name, "r"); |
| 200 | if (file == NULL) return false; |
| 201 | size_t size = file->size(); |
| 202 | return (size <= file->readToString(output, size*100)); |
| 203 | } |
| 204 | |
| 205 | bool writeStringToFile(const std::string& data, const std::string& file_name) { |
| 206 | File* file = File::open(file_name, "w"); |
no test coverage detected