Sources and Sinks
- sockets
- a database
- a CVS repository
- memory-mapped file
- a vector
- file descriptor
- an array
- a window
Writing to/reading from other places.
file descriptor, FILE* or array - useful for C interop
direct to a vector or other container, maybe a string - avoid copying overhead of using stringstream
database - maybe for an O/R mapping