|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.learn - Request: Example for working with Zip files
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 Apr 10 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 Apr 10 2008
== Quote from Tyro[a.c.edwards] (no spam.com)'s articleI 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 Apr 11 2008
"Tyro[a.c.edwards]" wroteI 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. Apr 11 2008
Steven Schveighoffer Wrote: I went to that site amd I would like to read your page but Its pump up terminoligy is confusing. I always like to see a simple introduction come first in case the reader does not have your level of expertise . In your pages' case something like this to start (if it is right) Tango can create a virtual file system which will combine the chosen true file systems of your source in a way chosen by you. This can then be used more easily as one cohesive file system The files can be from your hard drive , zip files , ftp or WebDAV systems Remember the poor old dummies like me- now I'll go back and see if I can make sence of a bit more of it . Apr 11 2008
|