Search:
Forum
General C++ Programming
How to define the end of line in loop?
How to define the end of line in loop?
Oct 21, 2010 at 4:58am UTC
nithiya
(2)
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....
Oct 21, 2010 at 8:32am UTC
bartoli
(271)
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.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs