ABSTRACT

This program reads integers from a file, sorts them, and stores the sorted integers into another file. We have already learned how to read integers from a file in Section 10.2.2. Chapter 9 explains how to sort arrays. Here we put these two things together. This is the first few steps of the program:

1. Check whether there are command-line arguments for the input and the output file names.