"Sean Carolan" <scaro...@gmail.com> wrote
I ended up doing this, but please reply if you have a more elegant solution:if line.startswith('notes'): break notes = open('myfile','r').read().split(notes:\n')[1]
The first two lines are redundant you only need the last one. HTH,Alan G.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor