Reading a single character from an fstream?
问题 I'm trying to move from stdio to iostream, which is proving very difficult. I've got the basics of loading a file and closing them, but I really don't have a clue as to what a stream even is yet, or how they work. In stdio everything's relatively easy and straight forward compared to this. What I need to be able to do is Read a single character from a text file. Call a function based on what that character is. Repeat till I've read all the characters in the file. What I have so far is.. not