Question: C++ FILE OUTPUT Write a program that will use a for loop to write the numbers 1 through 10 to a file named output.txt. Tell
C++ FILE OUTPUT
Write a program that will use a for loop to write the numbers 1 through 10 to a file named output.txt.
Tell the user when the writing to the file is getting ready to happen and then when it has completed successfully. Close the file when you are finished. Allow the user to run the program as many times as he/she wants by using a do-while loop.
Example:
Getting ready to write numbers 1 through 10 to output.txt.... The numbers 1 through 10 have been successfully written to output.txt. Do you want to run the program again? (y/n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
