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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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