| 329 | |
| 330 | |
| 331 | std::string readFileIntoString(const std::string& filename) |
| 332 | { |
| 333 | std::string str; |
| 334 | |
| 335 | std::istream* stream = openFile(filename, false); |
| 336 | if (stream) |
| 337 | { |
| 338 | str.assign((std::istreambuf_iterator<char>(*stream)), |
| 339 | std::istreambuf_iterator<char>()); |
| 340 | closeFile(stream); |
| 341 | } |
| 342 | return str; |
| 343 | } |
| 344 | |
| 345 | |
| 346 | std::string getcwd() |