Dealing with streaming data, such as reading data from a network socket or serial port, and writing data to a file.