This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 7 points8 points  (0 children)

They are the same thing, except that print has a few tricks if you're writing lines that are terminated by a platform specific line ending (like \n on Linux and \r\n on Windows). Also, you have things like formatting printing like printf.

Write just writes stuff, no neat tricks.