string - What's the difference between \n and \r\n? -


they both mean "new line" when 1 used on other?

\r\n windows style

\n posix style

\r old pre-os x macs style, modern mac's using posix style.


\r carrige return , \n line feed, in old computers not have monitor, have printer out programs result user, if want printing staring of new line left, must \n line feed, , \r carriage return left position, old computers syntax saved time on windows platform.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -