Hey guys, I'm having a hell of a time here. I have an assignment for a college course and I'm tasked with creating a console app that can detect user input, recognize keywords from a .txt file (colors in this case, red, blue, yellow etc.) And replace those keywords with phrases from another .txt file (file is provided to me, so no worries there.)
So my main question is this: How do I use the fstream library to open colors.txt and phrases.txt, and then use them to replace user input colors with the phrases? All using provided text files. Goal of this program is to show that I can use fstream, ofstream, ifstream etc.