How to detect end of line?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • simla
    New Member
    • May 2010
    • 1

    How to detect end of line?

    I have made a loop in C++ to go through the lines in a text file in a series sequel. but the loop is only reading one line and then it stops. code is taking the end of line as end of file.

    how can i run this code so that it can identify the end of line and go to next line?
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    You can correct it so that it runs properly. Can't say much more than that without seeing the code itself.

    Comment

    Working...