Hi
here is my code:
if there is "123" in the test.txt fileCode:int main() { ifstream OpenFile("test.txt", ios::in); char ch; while(!OpenFile.eof()) { OpenFile.get(ch); cout << ch; } OpenFile.close(); return 0; }
but it prints out 1233, there is extra "3", I don't know why, what should I do to prevent it? Thanks