CS 225 Homework 7
Due at 11:00 AM, Friday, November 3, 2017.

Write a complete java program called MergeFiles that takes (any number of) file names as command line arguments. The files will contain integers, one per line, that are sorted into increasing order. The program will merge the files, producing output that is also in increasing order. It will write the results to standard output. For examples, if we run java MergeFiles file1 file2 file3, where file1, file2, and file 3 are shown below, we will get the output shown below.

file1:

	  1
	  4
	  7
	  10

file2:

	  2 3 8

file3:

	  2
	  6
	  7
	  8
	  11

output:

	  1
	  2
	  2
	  3
	  4
	  6
	  7
	  7
	  8
	  8
	  10
	  11

You must use the merge algorithm from merge sort, except that it will work on files rather than arrays. You are NOT permitted to read the entire contents of the files into arrays. In fact, you must not store more than one number from each file at a time.

You should observe that the input files may be of different lengths. In fact, a file might even be empty. There is NO restriction on the size of the numbers, except that they will be in the range for Java int values.