ch07: The rest of the examples from Chapter 7: I/O