Reading next line of a file - C++ Forum - Cplusplus.com
how do you read the next line of a file and print it out? this is my code ... You probably meant == and not just =; also the getline() has already read the ... line; ifstream myfile( "example.txt" ); if (myfile) // same as: if (myfile.good()) ...
www.cplusplus.com |