Connecting Tech Pros Worldwide Help | Site Map
 
 
LinkBack Thread Tools Search this Thread
  #1  
Old November 12th, 2005, 10:45 AM
vj
Guest
 
Posts: n/a
Default how to print a new line character

How to print a new line character . Is it chr(13) || chr(10)?

  #2  
Old November 12th, 2005, 10:46 AM
Visu
Guest
 
Posts: n/a
Default Re: how to print a new line character


Its chr(10).

  #3  
Old November 12th, 2005, 10:46 AM
Jan M. Nelken
Guest
 
Posts: n/a
Default Re: how to print a new line character

vj wrote:[color=blue]
> How to print a new line character . Is it chr(13) || chr(10)?
>[/color]

There is no new line character. What you are refering as New Line is in
fact a *pair* of two control characters CR LF:

Name Hex Long Name
-------------------------------
CR 0x0D Carriage Return
LF 0x0A Line Feed


In DOS/Windows world End-of-Line is represent as CR LF (0x0D0A) while
in Unix world End-of-Line is represented by LF alone (0x0A).

----------------------------------------------------------------------
FYI:

In Ascii there are several control characters; there are also 4 special
separators called:


Name Hex Long Name
-------------------------------
FS 0x1C Field Separator
GS 0x1D Group Separator
RS 0x1E Record Separator
US 0x1F Unit Separator
------------------------------------------------------------------------


Jan M. Nelken
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 205,174 network members.