in reply to Manipulating an encrypted file
Quick and dirty answer: instead of pushing the unencrypted chunks onto an array, concatenate them onto a string. Assuming that your encrypt/decrypt preserved the non-printable chars (\n and tab) you should then be able to simply print out the final string.