
December 17th, 2012, 01:50 PM
|
 |
Contributing User
|
|
Join Date: Aug 2003
Location: UK
|
|
It is not clear what you want to do. Do you need an archive tool or an extraction tool - one is the opposite of the other?
If you intend to create both, then you can use an existing format or invent your own (somewhat pointlessly perhaps, but possibly useful academically).
For existing formats, take a look at http://www.wotsit.org/ it has details of the TAR format and may others.
Essentially an archive file is simply a way of collating the content of several files into a single file with metadata included that will allow the file content to be distinguished and later separated into the original separate files with the original names and attributes.
So thinks you may need to know about include: - file handling (open, read, write)
- OS calls to obtain and set file attributes
- OS calls to iterate a folder or directory
- filename wild card matching
- command line argument processing
- data structures
file handling, and how to process command line arguments and how to obtain file attributes
|