Chapter 4: File I/O