Simple function to dump some text into a new file.
| 244 | |
| 245 | // Simple function to dump some text into a new file. |
| 246 | void CreateTextFile(const FilePath& filename, |
| 247 | const std::wstring& contents) { |
| 248 | std::wofstream file; |
| 249 | file.open(filename.value().c_str()); |
| 250 | ASSERT_TRUE(file.is_open()); |
| 251 | file << contents; |
| 252 | file.close(); |
| 253 | } |
| 254 | |
| 255 | // Simple function to take out some text from a file. |
| 256 | std::wstring ReadTextFile(const FilePath& filename) { |
no test coverage detected