Programming Project 14

This is not a project from the book, but is similar to Project 13. Write a command-line driven program that merges several text files into a single one. Of the parameters, the first is the file to be written, and the rest are the files to be merged (there can be any number of these). For example, if the program is called AppendManyFiles, then
java AppendManyFiles out.txt inOne.txt inTwo.txt inThree.txt inFour.txt
merges inOne.txt, inTwo.txt, inThree.txt, and inFour.txt and puts the result into out.txt.

Solution