They both mean “new line” but when is one used over the other?
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.
\r\nis a Windows Style\nis a POSIX Style\ris a old pre-OS X Macs Style, Modern Mac’s using POSIX Style.\ris a carriage return and\nis a line feed, in old computers where it not have monitor, have only printer to get out programs result to user, if you want get printing from staring of new line from left, you must get\nfor Line Feed, and\rfor get Carriage return to the most left position, this is from old computers syntax saved to this time on Windows platform.