I'm looking for some code such that I can compress a .txt file to a .gz file and then decmopress the .gz file to stdout.
I need to use zlib - trouble is, I can't really find anything to get started!
I've seen this: How can I easily compress and decompress files using zlib? and this: http://zlib.net/zlib_how.html
but it's not really helping me. If any zlib users out there have any code snippets, it would be most appreciated.
Thanks in advance,