You can use `File.write` instead of needing the separate `open`.