gzip

BlitzPlus Forums/BlitzPlus Programming/gzip

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi

I need to open a gzip file (*.gz) and uncompress it to a bank in memory. I've searched posts and archives (even things like datafunk) and they all talk about compressing and uncompressing banks and writing to files but none of them actually read a *.gz file. I've messed around with the decls file and looked at the zlib.h but with no sucess so an example would be appreciated.

Thanks

Ok sorted it out just added

zip_read%(file%,buffer*,len%):"gzread"

to the zlib.decl file and it worked like a charm