or do I just not get the question. My code seems to do what the task requires. But it does not want to validate. It even complains about not closed streams. But I use try-with-resources. Or is it really necessary that file 1 gets read into a buffer, file 2 copied to 1 and then the buffer appended?