File Compression

I need a class or function that will compress a file. All it needs to do is take an input filename and an output filename and possibly amount of compression required.

Thankyou in advance for any help.
TSMITHAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
RONSLOWConnect With a Mentor Commented:
look here

http://www.internz.com/compression-pointers.html

for links to libraries, source code, books etc on compression.

in particular, get zlib .. free portable compression. There is an article about it (with downloads) at

http://www.dogma.net/markn/articles/zlibtool/zlibtool.htm
0
 
snoeglerCommented:
Check out www.gnu.org, they have lots of free code. Among others, you can find the compression functions from 'GZIP', which are slightly better compared to PKZIP/WinZIP.
I have adapted the source code within one of my own projects, it's not hard to do.
0
 
TSMITHAuthor Commented:
I am now successfully using Zlib, cheers, it even has a little encryption function.
0
 
RONSLOWCommented:
Good stuff .. I might even try it myself :-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.