End of File Character
Posted on 1999-12-09
This is a really silly C++ question and im embarassed to ask it, but I cant seem to figure out how to stop it. I have an output file that i am outputting some CStrings. When it outputs the CStrings and gets to the last one, my program outputs and end of file character that looks like a 'y' with two dots over it. So when i read in that file the next time, it reads in that y. My input file reads in until it gets to the eof character so that is ok, but i dont want the eof character to be visible upon output. How can i do this?Thanks!!!