Aug 28, 2012 at 11:03am UTC
How to merge multiple files into one. something like zipping but with no compression.
Aug 28, 2012 at 11:16am UTC
You would have to create/use a file structure. Like, for example, FAT uses tables to indicate the location of files.
Aug 28, 2012 at 11:36am UTC
I don't want to create a file system. Just a file that contains filenames and sizes and files content.
I want to write this program by myself. I don't want to use system commands or another program.
Aug 28, 2012 at 11:39am UTC
What part of your program do you have trouble with then?
Aug 28, 2012 at 12:18pm UTC
In reading file contents. How to separate file contents?
Aug 28, 2012 at 1:14pm UTC
I didn't understand what you said, would you please explain?
Aug 28, 2012 at 1:30pm UTC
You need to design the structure of your archive so you have a header that describes the content the rest of the file.
It's sort of line the Table Of Contents in a book. You open the book, look up the page number of the chapter you're interested in, search for that page and start reading. It's the same with an archive.
Aug 28, 2012 at 1:51pm UTC
The tar program basically concatentates the files while keeping a record of the directory structure - use that maybe?
Aug 28, 2012 at 1:52pm UTC
It's probably a programming assignment, and so can't use an existing solution.