Getting end of line character [solved]

Started by
0 comments, last by Breander 16 years, 6 months ago
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]
Advertisement
Never mind I was doing something stupid else where in my program now it works fine.

This topic is closed to new replies.

Advertisement