Question: In Java: How do you open a file, read the contents, let a user correct said contents, and then update the file with the corrected
In Java:
How do you open a file, read the contents, let a user correct said contents, and then update the file with the corrected information? It has to be a method I can call within another method.
- The program will READ in data from a text file named Hours.txt. The user corrects any bad data. The program updates the information in StudyHours.txt file. For example if the file contains a letter grade of K which is not a possible letter grade.
StudyHours.txt contains the following data:
- first line full name
- second line number of credits
- third line grade desired for each class
Example format StudyHours.txt file
Aaron RODgers
12
A
Tom brady
9
K
philip Rivers
apple
c
Joe Theismann
15
B
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
