By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,288 Members | 1,290 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,288 IT Pros & Developers. It's quick & easy.

how to print a new line character

P: n/a
vj
How to print a new line character . Is it chr(13) || chr(10)?

Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

Its chr(10).

Nov 12 '05 #2

P: n/a
vj wrote:
How to print a new line character . Is it chr(13) || chr(10)?


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
Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.