merging of two file and copying into new file