| 184 | } |
| 185 | |
| 186 | bool BWriteFile::createNew(const char* pPath) { |
| 187 | if (isOpen()) { |
| 188 | return false; |
| 189 | } |
| 190 | file = std::fopen(pPath, "wb"); |
| 191 | return file != nullptr; |
| 192 | } |
| 193 | |
| 194 | bool BWriteFile::createNew(BString path) { |
| 195 | return createNew(path.c_str()); |
no test coverage detected