This is an add on of my post earlier. My game has 5.txt files. Each one has 10 different facts about that specific category. When the user selects a category it goes into a switch and I want to assign each switch to a specific text file, open the text file and print one fact to the screen. I know how to get data from one .txt manipulate it and output it to another but I just want the program to open the file and print one fact to the screen then ask the user if they want another fact. I am confused about how to do this because when i use

cout it just outputs what i put in the parenthesis. what am i missing here.