specify end of line character for readline

Jason jason at deadtreepages.com
Fri May 11 15:32:35 EDT 2012


Is there any way to specify the end of line character to use in file.readline() ?

I would like to use '\r\n' as the end of line and allow either \r or \n by itself within the line.

Thanks,

Jason



More information about the Python-list mailing list