Merging of two file into a third file