Quote:
Originally Posted by skinnytron
Disregard the previous post. That code snippet will work.
The problem I am having is that the file is in the format filename.txt.gz which I'm assuming zipArchive won't extract. Does anyone know of a solution for handling these files in objective-c?
|
as you have figured out by now, gz is gzip which is different from zip. apparently you can link with libz.dylib on the iPhone but i don't have any sample code showing how to uncompress them.
here's a blog post showing how to compress, maybe you can work backwards from it.
How to gzip Data in Memory Using Objective-C — ClintHarris.net