Returns the text contents of the given file
| 75 | |
| 76 | // Returns the text contents of the given file |
| 77 | inline std::string loadFileToString(const fs::path& path) |
| 78 | { |
| 79 | std::stringstream contentStream; |
| 80 | std::ifstream input(path); |
| 81 | |
| 82 | contentStream << input.rdbuf(); |
| 83 | |
| 84 | return contentStream.str(); |
| 85 | } |
| 86 | |
| 87 | // True if the file (full physical path) contains the given text (ignoring CRLF vs. LF line break differences) |
| 88 | inline bool fileContainsText(const fs::path& path, const std::string& textToFind) |
no test coverage detected