Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8512743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T04:21:57+00:00 2026-06-11T04:21:57+00:00

Possible Duplicate: Difference between \n and \r? in C/C++ I got used to the

  • 0

Possible Duplicate:
Difference between \n and \r?

in C/C++ I got used to the newline character being as ‘\n’
but when I got to C# it’s “\r\n”, ‘\n’ or ‘\r’ don’t write a new line on their own.

Why is that?
and what’s the difference between ‘\r’ and ‘\n’?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T04:21:59+00:00Added an answer on June 11, 2026 at 4:21 am

    From http://en.wikipedia.org/wiki/Newline:

    • LF: Multics, Unix and Unix-like systems (GNU/Linux, Mac OS X, FreeBSD, AIX, Xenix, etc.), BeOS, Amiga, RISC OS and others.
    • CR+LF: Microsoft Windows, DEC TOPS-10, RT-11 and most other early non-Unix and non-IBM OSes, CP/M, MP/M, DOS (MS-DOS, PC-DOS, etc.), Atari TOS, OS/2, Symbian OS, Palm OS
    • LF+CR: Acorn BBC and RISC OS spooled text output.
    • CR: Commodore 8-bit machines, Acorn BBC, TRS-80, Apple II family, Mac OS up to version 9 and OS-9
    • RS: QNX pre-POSIX implementation.

    CRLF Was intended to be compatible with all the others.

    The above all mean newline. THe original meaning was lost, even if someone had an argument for using one or the other, at some point in history.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: difference between throw and throw new Exception() I'm a programmer working on
Possible Duplicate: Difference between OnClick() event and OnClickListener? I'm semi-new to Android development and
Possible Duplicate: Difference between class property mVar and instance variable self.mVar I am new
Possible Duplicate: What's the difference between utf8_general_ci and utf8_unicode_ci I've got two options for
Possible Duplicate: Difference between single quotes and double quotes in Javascript Sorry guys, but
Possible Duplicate: Difference between DropDownlist or DropDownListFor Html helper I'm new in asp.net mvc
Possible Duplicate: Difference between A* pA = new A; and A* pA = new
Possible Duplicate: Difference between e.target and e.currentTarget I don't really understand the difference between
Possible Duplicate: Difference between WIN32 and other c string I got this code inside
Possible Duplicate: Difference between (function(){})(); and function(){}(); I am trying to understand a few

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.