How to read and copy contents from one file into another (Java)