[QUOTE=matsp;663024]
Also, for future use, you may want to allow more than one encrypted text to exist, so maybe you should just merge the two source-codes to one application, and just decrypt/encrypt all in one thing - that's the beuty of a XOR encryption - it's exactly the same thing to encrypt and decrypt - the only difference is what you've got as an input - clear text or encrypted text.
/QUOTE]
The reason I did that is because for some reason, if the file is truncated, it will only write one letter to it, so I have to append to it. I was forgetting to clear it when I was done, so I ended up with more then one text file encrypted in it.