Section 4.1. Write to a File