I am relatively new to C++. I am trying to use a text file with a list of addresses formatted as such, "100 Smith St". I want to search the list of addresses in the file to see if the address exists in the list and then cout the appropriate response if the string is found or not.
I am able to connect to the file with no problem, but don't seem to be able to figure out a way to search thru the addresses with my limited experience. I'm not looking for the answer to be given to me, just to be pointed in a helpful direction to solve the issue.
-While the file is reading data into the string(getline can also be used if you want a whole line) the string.
-if the string equals the name, and print out and exit the loop