When I write to a file using output access it always puts a return at the end of the text and makes it go to the next line. This is causing problems in my program. It's an encryption program that writes encrypted text to a file, and then can decrypt it. But because the return at the end is not encrypted, it decrypts to the wrong character.

This is the code I'm using to write it:

Open CurrentFile For Output As #1
Print #1, txtEncrypt.Text
Close #1

Anyone know how to make it not add the return at the end of the file?

Thanks