Packed Files (Puting multiple files in one file)

This is a discussion on Packed Files (Puting multiple files in one file) within the C++ Programming forums, part of the General Programming Boards category; Two words: ZIP file....

  1. #16
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,160
    Two words:

    ZIP file.

  2. #17
    int x = *((int *) NULL); Cactus_Hugger's Avatar
    Join Date
    Jul 2003
    Location
    Banks of the River Styx
    Posts
    902
    Two words:

    ZIP file.
    Dang, you beat me to it. I second the aforementioned ZIP file. ZIPs can keep files names as well as folders, so you can archive in a hierarchical way. Plus, as icing, you get compression! (If you choose to use it.) There are already tons of libraries out there to work with zip, such as libzip and zziplib (although I'm not sure if zziplib does writing...).

    Otherwise, if you want to implement it yourself for learning purposes, and thus need/want something simpler, there's TAR, and there ought to be some libraries out there for that too. Might not be simple, but you could boil off most of the details are create something similar.
    long time; /* know C? */
    Unprecedented performance: Nothing ever ran this slow before.
    Any sufficiently advanced bug is indistinguishable from a feature.
    Real Programmers confuse Halloween and Christmas, because dec 25 == oct 31.
    The best way to accelerate an IBM is at 9.8 m/s/s.
    recursion (re - cur' - zhun) n. 1. (see recursion)

  3. #18
    Registered User
    Join Date
    Jul 2007
    Location
    England, Norwich
    Posts
    10
    Quote Originally Posted by Cactus_Hugger View Post
    Dang, you beat me to it. I second the aforementioned ZIP file. ZIPs can keep files names as well as folders, so you can archive in a hierarchical way. Plus, as icing, you get compression! (If you choose to use it.) There are already tons of libraries out there to work with zip, such as libzip and zziplib (although I'm not sure if zziplib does writing...).

    Otherwise, if you want to implement it yourself for learning purposes, and thus need/want something simpler, there's TAR, and there ought to be some libraries out there for that too. Might not be simple, but you could boil off most of the details are create something similar.
    i guess for now i'm going to try and build my own one as it's much more fun and a bigger head ack and the more you learn the better person you become or something like that

    anyways i'm gonna start with the basic without enciption and compression

    i

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 03-22-2009, 11:30 PM
  2. gcc link external library
    By spank in forum C Programming
    Replies: 6
    Last Post: 08-08-2007, 03:44 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. single File Pointer to Multiple Files
    By dayknight in forum C Programming
    Replies: 4
    Last Post: 09-16-2005, 12:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21