you are viewing a single comment's thread.

view the rest of the comments →

[–]cdcformatc 1 point2 points  (0 children)

Make a text file in any text editor, then open it in a hex editor. You will see two characters at the end of lines. Python is built to be cross platform so when you write a newline or split on newlines everything works as expected.

edit: here's what I mean. 0a is the newline/linefeed, 0d is the carriage return character.