in reply to Re^2: print() on Closed File Handle Error!
in thread print() on Closed File Handle Error!
If three or more arguments are specified then the mode of opening and the filename are separate. If MODE is '<' or nothing, the file is opened for input. If MODE is '>' , the file is truncated and opened for output, being created if necessary. If MODE is '>>' , the file is opened for appending, again being created if necessary.
Both > and >> will create a file. > empties the file and >> appends. Your post has that backwards.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: print() on Closed File Handle Error!
by dasgar (Priest) on Aug 13, 2010 at 19:25 UTC |