copying file contents from one file to other