Question: 23. Write a program that reads all integers from an input file and writes the integers to an output file in reverse order with a

23. Write a program that reads all integers from an input file and writes the integers to an output file in reverse order with a space after each integer. You must read each integer into an array of integers. You may assume there will never be more than 1000 integers in the input file and that the input file does not contain anything but integers. Ask for the names of both files (input and output file) from the user. Here's an example input file and the output file that would be generated. input file output file 23 45 67 321 54 0 -1 88-23 09 45 98 321 67 45 23 98 45 90-23 88 -1 0 54 //includes int main() {
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
