What is newline character — '\n'

前端 未结 8 2122
挽巷
挽巷 2020-12-07 01:18

This is a very basic concept, but something I have never been able to articulate that well. and I would like to try to spell it and see where I go wrong.

If I have t

8条回答
  •  醉梦人生
    2020-12-07 01:48

    I think this post by Jeff Attwood addresses your question perfectly. It takes you through the differences between newlines on Dos, Mac and Unix, and then explains the history of CR (Carriage return) and LF (Line feed).

提交回复
热议问题