copying the file contents