Exercise 16: Reading and Writing Files