![]() |
VOOZH | about |
Pre-requisite: File Handling in C
Given the source and destination text files, the task is to append the content from source file to destination file and then display the content of the destination file.
Examples:
Input: file1.text This is line one in file1 Hello World. file2.text This is line one in file2 Programming is fun. Output: This is line one in file2 Programming is fun. This is line one in file1 Hello World.
Approach:
Output:
Below is the output of the above program:
Time Complexity: O(N)
Auxiliary Space Complexity: O(1)