I have an std::ifstream
object:
std::ifstream file(file_path);
I read lines from it:
std::getline(file, line);
Is it legal to add lines to this file from another place while the stream is open? E.g. even after I reach EOF in the C++ program, can lines be added through a text editor, and getline
be called again to get the newly added lines? What does the standard say?