in reply to Re: print() on Closed File Handle Error!
in thread print() on Closed File Handle Error!

I still think you are missing a very important point, so I'll just reiterate it here.

Opening a file for writing will automatically create the file if necessary. But you are not opening the file for writing (>), you are opening it for reading (<). Please read the docs and make sure you understand the different modes used by open.