The echo "text" >> newfile funcitonality is working. I had to add a check to see if the temp file exists in encr_write. Seems hacky, but I don't understand why create didn't make the file in the first place. The cat file1 file2 >> file3 doesn't work properly. It only takes file2 and puts it in file3