2. Write a C++ program to merge two files.
Answers
Answer:
To merge two files in C++ programming, you have to ask to the user to enter the three file name with extension. Now first open the two file and start copying the content of first file to the third file (target file) after this start appending the content of second file to the third file (target file) as shown here in the following program.
Explanation:
Answer:
1. Enter first file name :: C:\\Users\\acer\\Documents\\file4. txt.
2. Enter second file name :: C:\\Users\\acer\\Documents\\file5. txt.
3. Enter third name of file :: C:\\Users\\acer\\Documents\\file6. txt.
4. The two files were merged into C:\\Users\\acer\\Documents\\file6. txt file successfully....!!
5. Process returned 0.
Explanation:
IF THIS HELPS YOU THEN PLEASE MARK IT AS A BRAINELIST ANSWER....