Sign in to follow this  

Getting end of line character [solved]

This topic is 3720 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

This topic is 3720 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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