Hey, I am back!

Due to mysterious reasons my account was deleted, so I'll just post this again.

I made a program that can pack multiple files into one and another program to unpack those files. This allows for self-extracting programs and utilities, it even can unpack itself!

File packer: AnN7sQNg
File unpacker: 1b2u56ms
My pastebin: Greygraphics

How it works:
SpoilerPacking the files:
  1. Open target file
  2. Read files to pack into an array and add "NEWFILE" and "EOF" as headers
  3. Pack everything into "–[[" and "–]]"
  4. Write the array to the target file, write or append mode
  5. Cleanup
Unpacking the files:
  1. Read the whole file into an array
  2. Scan this array for any headers ("NEWFILE")
  3. 1. Go to next header 2. Read name below 3. Read contents below 4. Write all the contents into file 5. Repeat
  4. Cleanup