Only for testing
| 34 | |
| 35 | // Only for testing |
| 36 | std::string ReadFileIntoString( |
| 37 | const std::string& filename) { |
| 38 | std::ifstream ifile(filename); |
| 39 | std::ostringstream buf; |
| 40 | char ch; |
| 41 | while(buf && ifile.get(ch)) { |
| 42 | buf.put(ch); |
| 43 | } |
| 44 | |
| 45 | return buf.str(); |
| 46 | } |
| 47 | |
| 48 | } // namespace |
| 49 |