Carriage return, newline notation (CHR,ASCII)

Source: Internet
Author: User

chr (13) is a carriage return
Chr (10) is a newline character. The ASCII function converts the character to its corresponding ASCII code,The CHR function converts a number (acscii code ) into the corresponding character. the difference between carriage return and line breakin ASCII, carriage returns and line feeds are different characters. 0X0D is the carriage return, that is, the cursor moves to the left of the bank; 0x0a is a newline, that is, the cursor moves to the next line. In the DOS window press ENTER, in fact, the input of two characters 0x0a,0x0d, corresponding to C, is \ r (carriage return) \ n (newline). a newline (\ n) is the cursor moving down one line without moving to the beginning of the line, and the carriage return (\ r) returns to the beginning of the line without moving one row. The ENTER key is pressed to execute \ r \ n.

Carriage return, newline notation (CHR,ASCII)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.