Hi. My program asks the user the create a recipe name, enter ingredients then method. the program writes this information to a text file perfect, BUT I want the user to be able to search for previously created recipe files by recipe name and then display all information on the screen. Any help would be great. Thanks
what you are doing is creating new file for each recipe which according to me is not necessary.(you can use classes too)But if you want that then...
1)open file for input.(as you have created new file for each recipe).If open fails then show message
2)As it is text file get text with simple "f>>"
3)and display that.
Note:Instead for asking user to enter words with "-",you can use getline function to get input.