Let's say i have a simple archive file, i've figured its format, headers etc ) thru hexadecimal editor.
Now whats the best approach for manipulating it in C++, like inserting a new file on it, editing its current data, making a list of included files, will only fstream class be enough?
What i'm really looking for is a good tutorial covering this specific subject, i've already tried google, but only found documents explaning how to deal with fstream class, which I already read and practiced.
If you already know the format of the file, the rest is just reading and writing bytes, which you can easily do with fstream.
Perhaps create functions to read/write the following structures
- archive header (describes the whole archive)
- file header (describes a single file)
- file data (compressed or not)
Since you made no effort at all, closed.