copy the data from two files to another file