Reading a DOS text file and writing out Mac

Discussion in 'Python' started by jennyw, Jul 11, 2003.

  1. jennyw

    jennyw Guest

    Is there a way to set the EOL character that Python recognizes? For
    example, I'd like to set it to cr/lf (okay, that's eol characters) when
    reading a file (DOS text) and set it to just cr when writing out (Mac).
    Is there a way to do this?

    Thanks!

    Jen
     
    jennyw, Jul 11, 2003
    #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.
Similar Threads
  1. Skip Montanaro
    Replies:
    0
    Views:
    441
    Skip Montanaro
    Jul 11, 2003
  2. Ben Fairbank
    Replies:
    2
    Views:
    5,495
  3. john san
    Replies:
    19
    Views:
    773
    Diez B. Roggisch
    Feb 18, 2005
  4. tomhr
    Replies:
    27
    Views:
    1,458
    Mike Wahler
    Jan 12, 2006
  5. January Weiner

    Reading Mac / Unix / DOS text files

    January Weiner, Feb 21, 2006, in forum: Perl Misc
    Replies:
    23
    Views:
    334
    January Weiner
    Feb 27, 2006
Loading...

Share This Page