in reply to Re: print() on Closed File Handle Error!
in thread print() on Closed File Handle Error!
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.
|
|---|