Reputation: 457
so I'm making an iPhone app and part of the code is in C++. I'm loading an 80mb file which is basically just a lot of text, but I notice that same file when zipped is just 17mb which would be easier to open for an iPhone. How can I compress this file and at runtime decompress and read the decompressed string?
Upvotes: 2
Views: 3618
Reputation: 27078
You could use zlib,
http://www.zlib.net/zlib_how.html
There's a thread about c++ examples here:
What easy zlib tutorials are there?
Upvotes: 0