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

  • Home
  • SEARCH
  • 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 8346883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T07:10:00+00:00 2026-06-09T07:10:00+00:00

Why do line ending differ from platform to platform? Even why is there term

  • 0

Why do line ending differ from platform to platform? Even why is there term like line ending in programming?

I prefer saving my codes in Unix/Linux format, even if I’m on Windows. Am I missing anything by not saving it in Windows or MacOS format? How does line ending effect in coding.

  • 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-09T07:10:01+00:00Added an answer on June 9, 2026 at 7:10 am

    Basically everyone wanted to be different when creating OS’s – Un*x’s started with LF, then VMS and DOS wanted CR/LF (like a typewriter) and of course MAC wanted to be different so they went for CR only.

    They just wanted to make it harder to transfer between OS’s so that you ‘bought’ into one

    Added because of comment

    Up to the programmer – if you need to support different line endings then you must code for them. eg you could create a #define for the line ending and then have this change depending on compile options

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

Sidebar

Related Questions

I'm trying to match on a line ending with something like: blocking=12345us The pattern
Is there an easy way to get the type of line ending that the
I have been bitten by the Windows/Linux line-ending issue with git. It seems, via
I need to use unix Style line endings (only LF) in Zend Studio 8/9
I have a text file that contains unix style line endings: a 0x0A at
What does 'inconsistent line ending' mean in Visual Studio 2010? I also see this
I want to get both the beginning and ending line numbers of all functions
I need to use preg_match to check if a line is ending with />
I am trying to get all the line numbers from jtextarea. I though of
As you all know, the line endings in DOS/Windows file differ than those of

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.