Use the with statement to open a file.