how many characters is carriage return? [modified]
-
what is the number of characters a carriage returns has? is this the code: \r\n Please help
modified on Monday, September 29, 2008 1:46 PM
Carriage return is '\r', linefeed is '\n'. Text files on Windows usually end lines with a carriage return and a linefeed character. But to answer your question: a carriage return has 1 character.
-
Carriage return is '\r', linefeed is '\n'. Text files on Windows usually end lines with a carriage return and a linefeed character. But to answer your question: a carriage return has 1 character.
-
what is the number of characters a carriage returns has? is this the code: \r\n Please help
modified on Monday, September 29, 2008 1:46 PM
As Steven said, the carriage return character is a single character. I think that what you actually are looking for is the new line character sequence. A new line sequence can either be one character (line feed) or two characters (carriage return + line feed). A unix/linux based system used a single character, while a DOS/Windows based system uses two characters. In C#, the escape sequence \r gives you the carriage return (CR) character, and the escape sequence \n gives you the line feed (LF) character. To get the new line character sequence for the system that the program is currently running on, use the
Environment.NewLine
property.Despite everything, the person most likely to be fooling you next is yourself.
-
As Steven said, the carriage return character is a single character. I think that what you actually are looking for is the new line character sequence. A new line sequence can either be one character (line feed) or two characters (carriage return + line feed). A unix/linux based system used a single character, while a DOS/Windows based system uses two characters. In C#, the escape sequence \r gives you the carriage return (CR) character, and the escape sequence \n gives you the line feed (LF) character. To get the new line character sequence for the system that the program is currently running on, use the
Environment.NewLine
property.Despite everything, the person most likely to be fooling you next is yourself.
-
what is the number of characters a carriage returns has? is this the code: \r\n Please help
modified on Monday, September 29, 2008 1:46 PM
-
Environment.NewLine.Length = 2
:sigh:xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)
((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))