Thread: Compressing an entire directory

  1. #1

    Post Compressing an entire directory


    I have currently written a simple program to backup a database for a project we are working on here in school, currently its just using a system command to tar.gz an entire director including subfolders. But I found out that we are not allowed to use system commands in the code anymore. So I have to find another way to deal with this, any suggestions ? Note that I have to be able to compress several directories and files under them into 1 file. I have an idea that will read byte for byte of all the files and stuff, but that seems to be a long and tricky thing to do.

    Tnx for any help and/or directons in how to do this.

  2. #2
    Registered User Azuth's Avatar
    Join Date
    Feb 2002

    That site has a lot of source code, including a good section on encryption, and I think compression.
    Demonographic rhinology is not the only possible outcome, but why take the chance

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copying an entire directory
    By JustMax in forum C Programming
    Replies: 3
    Last Post: 03-11-2009, 04:06 PM
  2. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  3. Couple errors please help :-D
    By JJJIrish05 in forum C Programming
    Replies: 9
    Last Post: 03-06-2008, 02:54 AM
  4. Copying an entire directory
    By Brian in forum Windows Programming
    Replies: 6
    Last Post: 07-20-2002, 11:35 AM
  5. command line argument to accept entire directory
    By westm2000 in forum C Programming
    Replies: 2
    Last Post: 04-02-2002, 10:12 PM