For example on my PC it looks like it will use “\r\n”? Could it ever be something different than that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Historically it’s
\r\non Windows,\ron Mac and\non *nix. If you take these into consideration you ‘re golden.Also: I don’t know if this is relevant in your case, but typically many programming languages define a string constant which represents the “native” form of end-of-line for the system they are running on (e.g.
PHP_EOLin PHP,Environtment.Newlinein C#, etc).