INFO: Newline Character \n Equivalent to ASCII Linefeed (0x0A)Last reviewed: September 2, 1997Article ID: Q48885 |
The information in this article applies to:
The newline character (\n) is equivalent to the ASCII linefeed character (hex 0A). Thus, for files opened in text mode, CR/LF pairs are read in as newline characters, and newline characters are written as CR/LF. This information applies to STDIN, STDOUT, and STDERR, which are opened in text mode by default. When using strtok() to extract tokens separated by CR/LF in a file opened in text mode, only \n must be used as a token delimiter. Keywords : CRTIss kbfasttip Version : MS-DOS:5.1,6.0,6.00a,6.00ax,7.0; OS/2:5.1,6.0,6.00a; WINDOWS:1.0,1.5; WINDOWS NT:1.0,2.0,4.0,5.0 Platform : MS-DOS NT OS/2 WINDOWS Issue type : kbinfo |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |