CODE WARS ]I[ PROGRAMMING COMPETITION
Data Merger
Problem 3 Division II 3 Points
Problem Statement
Merge data from 2 input files and output the results to a 3rd file.
Program Input
There will be 2 input files named PROG03A.IN and PROG03B.IN, and each file will contain the same number of lines of text. Merge the data such that the text from line 1 of file 1 gets written to the output file PROG03.OUT. Next, line 1 of file 2 gets appended to file PROG03.OUT. This repeats until all lines of text from both files are stored in the output file.
PROG03A.IN
Line A1
Line A2
...
PROG03B.IN
Line B1
Line B2
...
Program Output
The output file PROG03.OUT should contain the merged data from the 2 input files as follows.
Line A1
Line B1
Line A2
Line B2
...