promptdojo_

open() — and the with-block AI keeps forgetting — step 6 of 9

Claude wrote this without a with block, so the file handle leaks if the read raises. Rewrite the body using with open(...) as f: so the file closes automatically. The script should still print promptdojo.

The break is on lines 4, 5, 6 — but read the whole snippet first.

full-screen editor opens — close anytime to keep reading.