13.6 — Basic file I/O « Learn C++
This produces the result: This is line 1 This is line 2 Buffered output Output in C++ may be buffered. This means that anything that is output to a file stream may not be written to disk immediately. Instead, several output operations may be batched and h...