I've written a Total Commander packer plugin which is working: now, I can create, open and unpack archives, and of course unpack one or more file(s). The structure for each file is:
[name length]
[name]
[creation time]
[data length]
[data]
My problem comes with deleting files: I don't know any solution to delete a part of a file, but what if I want it? E.g. I have 3 files in the pack and I want to delete the 2nd file.
Is there any good solution for this problem?
My first thought was that I create a new temp file, open the "old" archive, and write its content to the temp file, of course skip the part I want to delete, then close the files, overwrite the archive with the temp file and of course delete the temp file. But I think it isn't the best solution
The pack files should be up to 2Gb.
Thanks for your replies, I hope you can help me.






