Windows notepad not supporting newline character '\n'

后端 未结 4 1607
陌清茗
陌清茗 2020-11-29 11:14

From my iPhone application I\'m outputting data from text to a file. When opened with windows notepad, the data is all on one line and where there should be a new line a blo

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-29 11:32

    Windows default is to use \r\n as end-of-line marker. Notepad only recognises that, other text editors may know about other line-end styles and render correctly.

提交回复
热议问题