Extract a file from a Zip file

I have a zip file with some x number of files{only files and no folders}. I need to extract just the first file without unzipping the file and has to be implemented in C++/MFC.

Can some one suggest.
Who is Participating?
tampnicConnect With a Mentor Commented:
I went through this requirement a few months ago - the easiest open-source library I could find to go manipulate a Zip archive was InfoZip. I compile unzip60 as a static library and link the library into my executable.

I found the 7-zip SDK a bit overwhelming for simply unzipping an archive - the InfoZip library was very easy to understand and use. Its written in C but it only took me about an hour to write a C++ wrapper class for easier integration into my project.


You could download and install winrar.
That gives you a little more flexibillity when extracting zip files.
It's here http://www.rarlab.com/
barrykflConnect With a Mentor Commented:
For freeware u can use 7 zip www.7-zip.org/
n2fcConnect With a Mentor Commented:
Info on zip file format:

Public source code reference for zip algorithm(s):

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.