01-23-04 10:31 PM
Hello,
I am studying the C language, and I work mostly with FreeBSD at my job.
I need to write a program which will check all of the files in a
directory, and if one is over 20 megs, I need to compress it and move it
to an archive directory.
I realize that it would be very easy to do this with a shell script,
but since I am studying C, I would like to make a C program to do the job
for the coding practice.
Most of the program is simple, but I don't know what to do about the
compression part. Easy to do with gzip, but, like I say, I'd like to be
able to do this in my program.
Can anyone offer some suggestions as to how I would go about this?
Maybe it's best if I just write the shell program, though I would really
like to start doing C work at the office.
Thanks!
- Jamie
Greetings from Minneapolis, MN, United States
"A friend is someone who lets you have total freedom to be yourself."
[ Post a follow-up to this message ]
|