Here' another case for a context manager on the file. We should create the data before we start dealing with the filesystem, too. -- @ijl