MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / writeLinesToFile

Function writeLinesToFile

source/util/fileutils.cpp:39–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool writeLinesToFile(BString filepath, std::vector<BString>& lines) {
40 BWriteFile file;
41
42 file.createNew(filepath);
43 if (file.isOpen()) {
44 for (auto& line : lines) {
45 file.write(line);
46 file.write("\r\n");
47 }
48 return true;
49 }
50 return false;
51}

Callers 5

removeMethod · 0.85
saveMethod · 0.85
saveChangesMethod · 0.85
startAppMethod · 0.85

Calls 3

createNewMethod · 0.80
isOpenMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected