MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / writeFile

Function writeFile

core/filetools.cpp:872–880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

870 }
871
872 bool writeFile(const std::string &filename, const std::string &s)
873 {
874 std::string path = extractFilePath(filename);
875 createDirectory(path);
876 std::ofstream f(filename.c_str());
877 if (!f) return false;
878 f << s;
879 return true;
880 }
881
882 bool writeFile(const std::string &filename, const std::vector<std::string> &vs)
883 {

Callers

nothing calls this directly

Calls 3

extractFilePathFunction · 0.85
createDirectoryFunction · 0.85
sizeMethod · 0.80

Tested by

no test coverage detected