i am tasked to read one file or all files in particular zip / jar file using C or C++..
so, i can choose which file in the Zip / Jar that need to be read by my C Application..
how to getting started to solve this?
Thanks for your reply..
Sorry, i'm pretty new using zlib..
I have already downloaded zlib 1.2.5..
Please tell me what the steps to use zlib in our C / C++ Application..
And if you don't mind, please give me an example application or link for zlib's usage..
It was a pretty sweet setup. I had a FileSystem abstraction. The actual filesystem was derived class, and zip files were another derived class, so you could use zip files and the actual file system interchangably. It worked great for what I needed it for at the time.
It also had a cache system where files were decompressed once then possibly stored in a cache so that if the same file was read again at a later time it wouldn't need to be decompressed. Worked well with file seeking too.
About the only thing it didn't have was locking portions of a file. Also I don't think it was thread safe. If I redo it I'd probably consider those in more detail.
But yeah it was all abstracted really well too so like other archive formats could be dropped in pretty easily.