Question: Write a program that inputs the names of fifteen cities and stores them in a file city.txt and then read the file and display the
Write a program that inputs the names of fifteen cities and stores them in a file city.txt and then read the file and display the name of the city which you have searched and if city is not present in the file then display a message city not found.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
