The trivial way is using the
system
call to lauch the
gzip
executable. If you want ot use a library, have a look at
zlib[
^]. Finally if you want to implement yourlsef the compression algorithm...
[update]
Quote:
hey how to make a system call. like can you give me an example
of course (see also the
documentation[
^])
int rc = system("gzip foo.txt");
[/update]