Question: * Create a python solution that merges the contents of two files into a new file. * Open and read 0 6 . Project Input
Create a python solution that merges the contents of two files into a new file.
Open and read Project Input File.txt copying lines from Project Input File.txt to Project Output File.txt line by line. Keep a count of the number of input records and output records.
Inspect each line of the input file for the text: Insert Merge File Here
At this point, open Project Merge File.txt copying lines from Project Merge File.txt to Project Output File.txt line by line. Keep a count of the number of merge records and output records. At the end of Project Merge File.txt continue copying lines from Project Input File.txt to Project Output File.txt line by line. Keep a count of the number of input records and output records. Close all files Print the number of records in the input file, merge file, and output file.
In python
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
