I am trying to grab some data after opening a text file with append flag.
I am using the following code...but nothing is being printed and program execution is progressing forward.
Can anyone point me my mistake...
fstream outStream("test.txt", ios::app);string testID; cout << "Enter Teacher ID - "; cin >> teacherID; outStream.seekg(-10, ios::cur); getline(outStream, testID); cout << testID;
text.txt content :