Re: code to list contents of zip files

Glynn Clements <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
Prasanta Sadhukhan wrote:

> Thanks. I tried finding the central directory and list the contents 
> which I am now able to do. I got the match also but I am not sure how 
> would I get the contents once I get the match.

Once you've located the correct file header in the central directory,
the "relative offset of local header" field will allow you to find the
corresponding local file header, and the compressed data will be after
that.

-- 
Glynn Clements <[email protected]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.