MCPcopy Create free account
hub / github.com/LBANN/lbann / write_file

Function write_file

src/data_readers/unit_test/data_reader_common_catch2.cpp:89–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89void write_file(std::string data, std::string dir, std::string fn)
90{
91 std::stringstream s;
92 s << dir << "/" << fn;
93 std::ofstream out(s.str().c_str());
94 REQUIRE(out);
95 out << data;
96 out.close();
97}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected