Request: Example for working with Zip files
Unknown W. Brackets
unknown at simplemachines.org
Thu Apr 10 19:59:33 PDT 2008
Zip files are pretty easy to work with. You can find the spec on a site
like wotsit.org.
Decompressing/recompressing is most likely necessary (although it can be
done in memory.) Obviously writing to a temporary directory is
non-ideal. Most likely you would read the central directory out of the
archive, cache changes to that and new files, and then write out a new
zip file from that.
Working with it in-memory is also possible but would cost more for big
archives.
-[Unknown]
Tyro[a.c.edwards] wrote:
> I have a zip file of multiple zipfiles each containing files, folders, and other zip files. I need to tunnel into the individual files buried in all subarchives and folders in order to edit/insert/remove information. Ultimately I'd like to do the work directly inside the zip file without having to decompressing and recompressing the files. Request a demonstration of how to accomplish this.
>
> Any assistance, tango or phobos, is greatly appreciated.
>
> Andrew
More information about the Digitalmars-d-learn
mailing list