Reading next line of a file - C++ Forum - Cplusplus.com

Reading next line of a file - C++ Forum - Cplusplus.com

瀏覽:835
日期:2025-09-27
You probably meant == and not just =; also the getline() has already read the line into line; ... namespace std; int main() { string line; ifstream myfile( "example.txt" ); if (myfile) // same as: ......看更多