what should i put in the while condition?
Code:ifstream file3("idreport.txt"); char buf1[20],buf2[20]; while (this is not the END OF FILE) { file3.getline(buf1,20,' '); file3.getline(buf2,20,'\n'); cout << "buf 1 is" << buf1 << "\n"; cout << "buf2 is" << buf2 << "\n"; } file3.close();
thank you for helping