How would I store Several files whether they be data, text, bmp, or anything into a single file and recall them from that file. An example of this would be the pak files from quake or the wad files from DOOM.
Printable View
How would I store Several files whether they be data, text, bmp, or anything into a single file and recall them from that file. An example of this would be the pak files from quake or the wad files from DOOM.
It can be done in VB. What you have to do is (to Pak the file):
- Open output file in binary mode
- Write any header you want to put (file version, num of files inside...)
- Open each input file in turn and write its name, length and then data
- Close output file
To UnPak the fie you:
- Work it out for yourself lazy!
Have you looked into using a Resouce File?