Explanation:-
So in this problem, we have to Merge the two file into an another new file. The program first will ask you to enter the first file name after that ask for entering the second file name than program merge the first file and the second file. We have to enter the both file name with extension cause file always have extension or folder not this is useful when you want to merge two files or in other words, we can say that merge two file. This is not copying one file into the another file in this we have to merge two separate file file1 and file2 into file3 or we can say that we are copying the file1 and file2 in the third file file3.
Output:
Enter first file name (with extension like file1.txt): example.txt
Enter second file name (with extension like file2.txt): destination.txt
Enter third file name of file :merge.txt
the two files were merged into merge.txt file successfully!!!
Input: File1
Input: File2
Output File:
need an explanation for this answer? contact us directly to get an explanation for this answer