The compressor essentially takes and recursively parses through a directory, putting the contents of each file inside into a much larger text file. The process is then reversed by the extractor, preserving every file and the directory structure within.
It has a few problems. Firstly it doesn't decrease the file size at all, in fact it's quite a bit larger. I'm not sure if pastebin allows upload of binary files but if it does I'll look at adding huffman coding. Secondly, I've noticed io will time out on large files if you're running on a slow computer. Beware of this, not sure of a fix.
Anyway you can get it here:
Extractor: http://pastebin.com/461hnYHf
Compressor: http://pastebin.com/9PcVRBy6
And here's an example of what a compressed file will look like. It's basically a set of instructions to recreate the file- if I get around to it I'll try to make the archives self-extracting:
Spoiler
Hope someone finds it useful.
NF


This topic is locked









