specify end of line character for readline

Discussion in 'Python' started by Jason, May 11, 2012.

  1. Jason

    Jason Guest

    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
    Jason, May 11, 2012
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.

Share This Page