Difference between CR LF, LF and CR line break types?

前端 未结 9 2201
春和景丽
春和景丽 2020-11-22 04:05

I\'d like to know the difference (with examples if possible) between CR LF (Windows), LF (Unix) and CR (Macintosh) line break types.

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-22 04:17

    It's really just about which bytes are stored in a file. CR is a bytecode for carriage return (from the days of typewriters) and LF similarly, for line feed. It just refers to the bytes that are placed as end-of-line markers.

    Way more information, as always, on wikipedia.

提交回复
热议问题