Reminder - \r\n or \n\r?

前端 未结 10 1805
轻奢々
轻奢々 2020-11-30 16:37

I just can\'t remember those. So, what is the right way to properly terminate old fashioned ASCII lines?

10条回答
  •  长情又很酷
    2020-11-30 17:25

    if you are using C#, why not using Environment.NewLine ? (i assume you use some file writer objects... just pass it the Environment.NewLine and it will handle the right terminators.

提交回复
热议问题