Optimizing File Sorting

If you use input and output procedures with a file sort in your program, it is important that you write them efficiently as they are executed once for each record that you are sorting. Inefficient input and output procedures can make the sort process appear to be very slow.