printf(“Enter source file name(ex:source.txt): “);
printf(“Enter destination file name(ex:destination.txt): “);
printf(“File could not open!!”);
3 thoughts on “C program to copy the contents of one file into another”
I think if fp2 NULL it is created and string "File could not open!!" not show.
hello there ,,,,
can you help me to create a blog
or teach me how to create a blog ?
i want to create a drawing blog
in if condition there should be only if(f1==NULL) because file 2 can be either pre-written or it can be NULL also.it is user depended.Thanks for the Source,useful though.