How to define the end of line in loop?

I have a text file with several line, I divide each line in to different string in to a if loop. But the problem is the code is only identifying the end of file, not the end of line. which function will do that? Please help me....
I'd say, open your file as an std::ifstream, and use std::getline, which will give you a std::string
Topic archived. No new replies allowed.