r n in windows is different from n in Unix-like

Time:2019-10-8

r n in windows is different from  n in Unix-like

Figure 1

I don’t understand what “CRLF” means at first.

Looking up some information, I found its original intention in a post.One of them answered this question to me and explained the reasons for \r\n under Windows.

r n in windows is different from  n in Unix-like

Figure 2

The problem is solved easily.