I'm reading characters out of a text file and printing them to the console via this code:
Here is what is actually in the text file:Code:
char c = NULL;
textFile >> c;
cout << c;
This is what gets printed:
Why does it print the last character twice? What can I do to avoid it?