Input/output library - cppreference.com
[edit] Stream-based I/O The stream-based input/output library is organized around abstract input/output devices. These abstract devices allow the same code to handle input/output to files, memory streams, or custom adaptor devices that perform arbitrary ....