Copies data from one file to another.