Im trying to make a program that reads input from a file and outputs it on to the screen. For the sake of example, lets assume that I'm making a weekly planner program. I would like to have the user input daily tasks into a text file (probably via a vector of strings). The program will then save this data and ask the user if he would like to view his tasks, and, if so, which day would he like to see. If the use enters, "Tuesday" the program will output only tasks that have been entered for Tuesday.

The problem I'm running into is that in all of the tutorials I have found so far, the text file data is inputted wholesale and not selectively into the program. That is, the tutorial sample program opens the file stream and begins reading the data from the beginning of the text file, one line at a time until the end of the text is reached. Is there a way to be more selective with the data that is inputted (i.e. inputting only the text data for "Tuesday" or for "Thursday" rather than the entire text file). Or, alternatively, do you know of a website that has a tutorial on dealing with this issue?

Thanks!