| 22 | #include <string> |
| 23 | |
| 24 | bool readLinesFromFile(BString filepath, std::vector<BString>& lines) { |
| 25 | BReadFile file; |
| 26 | |
| 27 | file.open(filepath); |
| 28 | if (file.isOpen()) { |
| 29 | BString line; |
| 30 | while (file.readLine(line)) { |
| 31 | lines.push_back(line); |
| 32 | } |
| 33 | file.close(); |
| 34 | return true; |
| 35 | } |
| 36 | return false; |
| 37 | } |
| 38 | |
| 39 | bool writeLinesToFile(BString filepath, std::vector<BString>& lines) { |
| 40 | BWriteFile file; |
no test coverage detected