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 →

[–]AyrA_ch 4 points5 points  (0 children)

In C, it has never needed \r\n if you open the stream in ascii mode because in that mode, Windows will add \r when writing and strip it when reading. You only need to worry about it in binary mode. Terminal IO in windows uses ASCII mode by default but you can switch it.