I am checking on ways to update my text file existing record.
For example I wanted to update the "Address" & "SSN" for Mary Rose to other information
using the following code fragment. How can I make use of scanner to complete my code?
Code Fragment
case 1: System.out.print("Address: ");
add=scn.nextLine();
add=scn.nextLine();
System.out.print("SSN: ");
ssn=scn.nextLine();
System.out.println("Your updated information:");
System.out.println("Address: "+add);
System.out.println("SSN: "+ssn);
Profile.txt
Mary Rose;23;Hilton Street;987-65-4320
Solid James;25;American Street;987-65-4329