"Sean Carolan" <scarolan at 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.