I need to develop a function that opens a file, stores it in a variable, seaches the variable for certain information and outputs appropriate information.
A couple questions here:
1.) How do you store an entire file in a variable?
2.) I know to use "find" for searching the variable for information, but how would I get the information that goes with what was entered? For example, I enter the item number of a product, in which the program does a cout of item name, item price, etc...
Any direction would be greatly appreciated.