Compressing Text (Zip?)

This might be a dumb question to ask, but how would I go about compressing text?

Basically, I’m going to be generating very long strings and I’d like to somehow compress it into a smaller string, then (obviously) be able to uncompress/extract it later on.


Speaking of compression, that’s complicated. If I reckon correctly, it’s some form of encoding using an algorithm. Following resource should answer this.

1 Like