Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

HOW TO COMPRESS A FILE IN C LANGUAGE?

0
Posted

HOW TO COMPRESS A FILE IN C LANGUAGE?

0

well this would consist of either making your own compression algorithm or calling a seperate library function to do it for you which is available by several libraries a free one is zlib and you can go here to get it: http://www.zlib.net/ also http://www.oberhumer.com/opensource/lzo/ and this is a page of several with pros and cons http://compression.ca/act/act-summary.ht… oh and to give one example well lets make some psuedo-psuedo-code: read file into memory remove all spaces count all instances of certain characters store how many and where save into new file you make which doesnt store the actual file but where all instances of chars are and how many this will reduce the size of the file then to uncompress you do the opposite to reconstruct the original file

Related Questions

Thanksgiving questions

*Sadly, we had to bring back ads too. Hopefully more targeted.