Thursday, 8 August 2013

Can I use a with statement on a file that already exists?

Can I use a with statement on a file that already exists?

I've got a file that I've already opened, and I want to auto-close it. Is
there any existing way to wrap the file in a with statement?

No comments:

Post a Comment