CS-341: Lab 4                 Sudharsan Iyengar           Fall    11/7/2024

 

Merge Routine:

Create an input file file1.txt. The first line contains a sequence of integer values in ascending order. The second line contains another line of integer values in ascending order.

Write an application that reads the values of each line from this file into an integer array. Write a method that takes in two integer array and returns an array of integers that contains the merged values from the arrays passed to the method. The application calls this method with the arrays created and writes the merged array returned to an output file called file2.txt.