Jump to content
  • Advertisement
Sign in to follow this  

Getting end of line character [solved]

This topic is 3938 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
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!