| 28 | ReadWrite::ReadWrite() = default; |
| 29 | |
| 30 | QByteArray ReadWrite::readFromFile() const { |
| 31 | if (QFile file(ioFile); file.open(QIODevice::ReadOnly)) |
| 32 | return file.readAll(); |
| 33 | return {}; |
| 34 | } |
| 35 | |
| 36 | void ReadWrite::writeToFile(const int pos, BYTE value) const { |
| 37 | std::ofstream file(ioFile.toStdString(), std::ios::in | std::ios::out | std::ios::binary); |