Getting end of line character [solved]
Ok my program is reading in a text file through a series of chars. Somewhat like so
infile.get(curr);
Now I need to be able to know weather or not I have I have gone to the next line of the file. I have been trying to do this by so but it doesn't work.
if (curr == '\n')
then do whatever
is there some other way to test this?
[Edited by - Breander on October 9, 2007 1:59:18 AM]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement