MCPcopy Create free account
hub / github.com/cwida/FastLanes / Write

Method Write

src/io/file.cpp:37–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35\*--------------------------------------------------------------------------------------------------------------------*/
36string File::read(const path& file_path) {
37 std::ifstream json_stream = FileSystem::open_r(file_path);
38 std::stringstream buffer;
39 buffer << json_stream.rdbuf();
40 return buffer.str();
41}
42
43void File::write(const path& dir_path, const string& dump) {
44 auto file = FileSystem::open_w(dir_path);
45
46 file << dump;

Callers 2

ExtDicFlushMethod · 0.45
flushMethod · 0.45

Calls 3

writeMethod · 0.45
dataMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected