[Tutor] adding more text to a file

Alan Gauld alan.gauld at btinternet.com
Mon Jan 18 02:19:50 CET 2010


"Magnus Kriel" <magnus.kriel at gmail.com> wrote

> It might be that when you create a file for the first time with 'a', that 
> it
> will through an exception. So you will have to try with 'w', and if there 
> is
> an exception, you know the file does not exist and you will have to 
> create
> the file for the first time with 'w'.

That should not happen. If there is no file 'a' will act like 'w'

Alan G.




More information about the Tutor mailing list