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?

  • 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!