C program to copy the contents of one file into another