Question: Revise the program that you wrote for Checkpoint 6.14 to use the for loop instead of the while loop. Checkpoint 6.14 Assume the file data.txt
Revise the program that you wrote for Checkpoint 6.14 to use the for loop instead of the while loop.
Checkpoint 6.14
Assume the file data.txt exists and contains several lines of text. Write a short program using the while loop that displays each line in the file.
Step by Step Solution
There are 3 Steps involved in it
infile opend... View full answer
Get step-by-step solutions from verified subject matter experts
