ZLib Compression

BlitzMax Forums/BlitzMax Beginners Area/ZLib Compression

Hi. I am trying to use the ZLib module to compress a basic file that contains one string although I am having little success.

Do you create the file stream and then read each individual byte of the stream through the Compress command? I am very confused...

Can anyone post a basic example on how to create a file and then compress it?

Thanks in advance.

I've added some info to the [a http://blitzwiki.org/index.php/Category:ZLib]BlitzWiki[/a] that may be of some help.

Thanks thats very helpful! :-)