Is it more clear if reword it this way: 

    First, the `with` opens a new code block. The nice thing about using a `with` statement in this way is that it will automatically close the file (even if an exception is raised).