MCPcopy Create free account
hub / github.com/davisking/dlib / make_empty_file

Function make_empty_file

tools/imglab/src/common.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28// ----------------------------------------------------------------------------------------
29
30void 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

Callers 3

convert_pascal_v1Function · 0.85
convert_pascal_xmlFunction · 0.85
create_new_datasetFunction · 0.85

Calls 1

errorClass · 0.85

Tested by

no test coverage detected