\r for newline in readlines function

Leeds, Mark mleeds at mlp.com
Fri Sep 19 18:37:42 CEST 2003


I did more investigation into my previous problem
and what happens is that my text file has \r for representing
a new line instead
of a \n. is there a way to tell the readlines
function that the symbol for a newline is \r rather
than \n ? right now the readlines function reads
the\r as another item in the list and just puts
everything into one big list because it
doesn't find any new line characters.
 thanks. i'm really stuck because
i can't read my data right now.
 
                                                mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20030919/f2e22815/attachment.html>


More information about the Python-list mailing list