PDA

Click to See Complete Forum and Search --> : Storing Files in one single file


GatesKeeper
Nov 2nd, 1999, 08:34 AM
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.

P9846
Nov 19th, 2002, 01:34 PM
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!

Hack
Nov 19th, 2002, 01:35 PM
Have you looked into using a Resouce File?