| 28 | // ---------------------------------------------------------------------------------------- |
| 29 | |
| 30 | void make_empty_file ( |
| 31 | const std::string& filename |
| 32 | ) |
| 33 | { |
| 34 | std::ofstream fout(filename.c_str()); |
| 35 | if (!fout) |
| 36 | throw dlib::error("ERROR: Unable to open " + filename + " for writing."); |
| 37 | } |
| 38 | |
| 39 | // ---------------------------------------------------------------------------------------- |
| 40 |
no test coverage detected