Sign in to follow this  
Breander

Getting end of line character [solved]

Recommended Posts

Breander    140
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]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this