Need Basic language compression code


Author Message
lizby
Guru

Joined: 17/05/2016
Location: United States
Posts: 3888
Posted: 02:37pm 13 Oct 2018      

I'm looking for MMBasic (or any variety basic) code to compress a text file. The file, which might be multiple megabytes, would be on the SD card of an Explore-64, and I'd like to compress it before downloading to a PC using XMODEM (and I'm assuming that XMODEM doesn't do compression on the fly). It's likely to be highly compressible. The code wouldn't have to try to wring out every bit of savings, but must be lossless.

Of course, I would need to decompress it again on the PC side--with MMBasic DOS.