"Magnus Kriel" <magnus.kr...@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.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor