I'm wondering if the way I'm reading file1 and adding it to the buffer is incorrect? My idea is to add the contents of file 1 to a buffer. Read and write the content of file2 to file1 Write the buffer which contains the content of file1 back to file 1. Use append = true so the content will be added to the end (so after the content of file2) Where do I go wrong?