How to read zip file?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Man4ish
    New Member
    • Mar 2008
    • 151

    How to read zip file?

    Hi,

    I am working on one project where i have to read zip file without unzipping it. How can i read the file line by line without unzipping it?

    Thanks
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Erm, why can't you unzip the whole thing?

    Anyway if you really want to do that all you need to do is implement the zip algorithm yourself (which must be possible since 7zip have managed it) taking care to pay the royalties on anyone else's IP that you use then you can unzip as much of the file as you need within your own program. Note that you can not start unzipping a zip file form the middle so you can jump to a specific line without unzipping all the lines that went before.
    Last edited by Banfa; Oct 7 '11, 11:09 AM. Reason: Now I have fixed my question

    Comment

    • mac11
      Contributor
      • Apr 2007
      • 256

      #3
      I've done this (in linux) using fuse-zip. It basically does the stuff Banfa said for you without you having to write that code.

      Comment

      Working...