I read file1 and file2, I append file1 to file2 then write file2 to file1. Then I close everything. Honestly I really don't see the mistakes I've made.