Quantcast
Channel: Is the backslash n `\n` really Line Feed, but is treated as a Newline? - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by check for Is the backslash n `\n` really Line Feed, but is treated...

I meant to write this as a comment but I can't.While reading the Build Your Own Text Editor tutorial, I came across this in the Fix Ctrl-M section:It turns out that the terminal is helpfully...

View Article



Answer by Joop Eggen for Is the backslash n `\n` really Line Feed, but is...

Nowadays there are the following line endings ("newlines"):Old MacOS 0x0D = 13 = CR = \r = carriage returnLinux 0x0A = 10 = LF = \n = linefeedAS400 0x85 = EBCDIC NL = NELWindows 0x0D 0x0A = CR-LF =...

View Article

Answer by EvilTeach for Is the backslash n `\n` really Line Feed, but is...

New Line is an abstract name for a text file line terminator. On Win machines, it is implemented as a 0x0d0a. On Unix machines it is implemented as a 0x0a. On old Macs it is implemented as an...

View Article

Is the backslash n `\n` really Line Feed, but is treated as a Newline?

For all the years using C, Ruby, Perl, Java, and PHP, or many other languages, I just took \n to mean newline. So turns out it is only "Line Feed" but is treated as "Newline"?It looks like the...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>