File This Away

Your next programming assignment is to write a program that reads a file of integers and reverses them. So if the file starts out with the numbers 3 5 7, then after you run your program, it will contain the number 7 5 3.

In order to test your program, you'll need another small program that will let you put integers into a file. You might write it where it asks the user for how many numbers to put into the file and them read them into and array which you then write to the file.


Return to the index .