(C++) While reading a file (ifstream), is there any way to direct it to make a new line?
Use std::getline to read a line into a memory stream, then get the two strings from that.
Related Questions
C++, reading a file using ifstream?
How can I break the reading this text file (using ifstream)? C?
Reading a text file - fopen vs. ifstream?
Reading file byte by byte with ifstream::get?
What's the most efficient way of reading an ifstream into an string?
Loading a property file by reading line by line from another file?
» About WebKnox
» Contact
» WebKnox Blog
» RSS
» Newsletter
» Twitter
» API
» API Showcase