in reply to Re^2: Reading a zipped file (win32)
in thread Reading a zipped file (win32)

OK, what the guys are doing, is taking very large log files from a unix machine. They FTP them onto their PCs, and compress them using zip. They then give the log files to our engineers who have to make sense of them. This is when they run my parser on the file. At the moment, they have to uncompress the file, then run my parser on it. Because the files are so large, they want to be able to run my parser on the zipped log file without unzipping it first.

Replies are listed 'Best First'.
Re^4: Reading a zipped file (win32)
by BrowserUk (Patriarch) on Jun 29, 2004 at 15:05 UTC

    Suggestion: Until someone writes the :via(Zip) IO layer, have the engineers unzip the logfiles into a directory that has the window "Compress contents" bit set.

    If they do this when transfering the files onto their local drives, whether from the network or replacable media, the amount of local diskspace used will probably be roughly the same as if the saved the .zip file.

    The advantage is that the filesystem will do the decompression on-the-fly and you don't need to modify your parser at all.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon