Results 1 to 3 of 3

Thread: Storing Files in one single file

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 1999
    Location
    IL
    Posts
    16

    Post

    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.

  2. #2
    Junior Member
    Join Date
    Nov 2002
    Location
    @ my PC
    Posts
    27
    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!

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,335
    Have you looked into using a Resouce File?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width