diff --git a/src/lib/file.cpp b/src/lib/file.cpp index 92be7a5..acb8e38 100644 --- a/src/lib/file.cpp +++ b/src/lib/file.cpp @@ -253,6 +253,7 @@ ErrorOr File::cutByte(){ byte = readData[this->cursorPosition]; readData.erase(readData.begin() + this->cursorPosition); + std::filesystem::resize_file(this->path, readData.size()); this->fileStream.seekg(0); this->write(readData); this->cursorPosition++;