I have a problem with my console program.
I have a text file named "myRecord.txt" with the following contents:
101,Carlito Caballero,500.00
102,Tina Gamboa,560.34
103,Angel Caballero,750.55
104,Kyla Shane,850.32
105,Jogie Glen Mait,1000.00
If I run the program, the console should prompt the user to enter the id number (which is the set of numbers on each beginning of a line),
ID:___
and the output would be a profile of the id number entered.
//prompts user to enter a specific id number
ID:101
//output
ID:101
Name:Carlito Caballero
Rate:500.00
I have tried to tokenize the whole file but a getline cant have delimiters in it. I also had tried to find something on the text file but it only finds a string entered and not the whole line.
Any help would be appreciated.