If i open a stream to a text file, when is the data actually writen to the file and viewable by another process? Example:
o << "hello" << endl;
o << "world" << endl;
If i take the text file and open it after the writing of "hello" with notepad, will I see "hello" in the text file, or will nothing be written until the file is closed when main() exits?