I'm trying to figure out how to work with i/o from files.
What I'd like to do is to read a string from the file until a certain character is found and stop without reading it (or drop it) or a newline is found. I want to keep reading until the newline appears and then start reading at the next line.Code:
accfile >> temp;
cout << temp;
cin.get was mentioned in the lecture, but I can't find any good examples through google of how to use it with a file.