So here is what I am trying to do. Our assignment is to create a simple phone number directory. The program needs to request a first and last name from the user then search a file which I have named as PhoneLookup.dat for the coordinating name, then if it is found print the name and phone number. All of the names and phone numbers are stored on PhoneLookup.dat. If the name isn't found then the program should prompt the user to input another name. If it is found it should print the data to the screen and ask the user if they would like to search for another name or quit the program.
I really am struggling with how to take in users inputted name and search the file for the information and then print that information. My understanding of I/O files is extremely limited and I am very new to C++. Here is what I have do far and I have just kind of hit a mental wall.
If anyone could assist me on I would search the file for the specific input name and then print that information to the screen I would be grateful.