Hi,
I'm trying to input entire lines of text from an open file to the screen. So far, I've only been able to print one word at a time followed by an unwanted newline. What's the secret? And, what recommendations can you give for a text that goes beyond the beginner material?
Here are some snips:
ifstream fin("dbase_a.txt", ios::in);
while (fin >> line))
{
outputLine(line);
}
void outputLine(const string line)
{
cout << line << endl;
}
Thanks,
David Korb
