Often, you need to connect two streams. For example, you may want to ensure that text asking
for input is written on the screen before the input is read. Another example is reading from and
writing to the same stream. This is of interest mainly regarding files. A third example is the need to
manipulate the same stream using different formats. This section discusses all these techniques.