On 2011-08-26, D'Arcy J.M. Cain <[email protected]> wrote: > On 26 Aug 2011 18:39:07 GMT > greymaus <[email protected]> wrote: >> >> Is there an equivelent for the AWK RS in Python? >> >> >> as in RS='\n\n' >> will seperate a file at two blank line intervals > > open("file.txt").read().split("\n\n") >
Ta!.. bit awkard. :)))))) -- maus . . ... NO CARRIER -- http://mail.python.org/mailman/listinfo/python-list
