[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fix corrupted zip file?



Is there a utility that will recover the text from the corrupted parts of a zip file?

My PC hung while I was saving an OpenOffice document. Because OpenOffice DOES NOT SAVE SAFELY, it overwrote my previous draft with part of the new one, my PC crashed before it was done saving, and I can't get my text out of the corrupted file that remains.

OpenOffice documents are actually zip archives containing several XML files. Apparently my text should be in a file called contents.xml, however, it is this very file that has the corrupted.

A google search turns up a plethora of zip recovery utilities for Windows. However, every single one I have tried so far only recovers the files within the zip file that are undamaged. Not one of them has had any success at recovering any parts of my contents.xml. Most of them just skip it, others create an empty contents.xml in the new zip file.

There must be some utility that can try to recover some of the text out of a broken zip file. I have Debian of course, but I also have Mac OS, Mac OS X and Windows.

Finally, I find it incomprehensible that OpenOffice simply overwrites an old file when saving a new one. One does not have to be a rocket scientist to write a safe save routine - you just save to a new filename, and only after one is sure the document is written correctly do you delete the old one and rename the new file to the original name.

Thanks for your help,

Mike Crawford
crawford@goingware.com

    Read "GoingWare's Bag of Programming Tricks" at:
           http://www.goingware.com/tips/



Reply to: