copy data from one file to another file