The file packer I've made is doing something weird. When it extracts the packed files, it puts characters in the beginning of a file. For example, if a text file called Dog.txt has been packed like this:
Code:
Hello, I am a dog.
What are you?
It will extract like this:
Code:
% Hello, I am a dog.
What are you?
It does this on all file types, not just text files. Anyone know what could be going wrong?
Strings contain a header (which VB hides from you). You might be printing thsi heade to the file unknowningly. If you can, re-write your function to write the string byte by byte.
I got it finished without using a Byte array. The problem was because the array was declared as a Variant, so I removed the Split code completely and just parsed the data into a String array -- which turned out to be a lot faster anyway. Thanks for the help guys.