C++ · Files and streams
A program's output vanishes when the window closes; a file keeps it, as long as you know what opening one does to what was there.