473,396 Members | 2,050 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

What is CRLF?



What is CRLF? Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #1
12 41338
Carriage return / line feed. char(13) + char(10).
"eddie wang" <ew***@kmg.com> wrote in message
news:en**************@TK2MSFTNGP11.phx.gbl...


What is CRLF? Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #2
"eddie wang" wrote...
What is CRLF? Thanks.


CRLF = Carriage Return Line Feed

Effectively hitting the return key twice, thus leaving an empty line between
text.

You can use it in ASP with vbScript like so :

<%
strText = "This is my first sentance" & vbCRLF
strText = strText & "This is my second sentance"

Response.Write strText
%>

Hope this helps,

Regards

Rob
Jul 19 '05 #3
Carriage Return + Line Feed

Ray at work

"eddie wang" <ew***@kmg.com> wrote in message
news:en**************@TK2MSFTNGP11.phx.gbl...


What is CRLF? Thanks.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #4
Rob Meade wrote on 03 mrt 2004 in
microsoft.public.inetserver.asp.general:
CRLF = Carriage Return Line Feed

Effectively hitting the return key twice, thus leaving an empty line
between text.


Nonsense. only 1.

The old teletype apparatus had seperate "characters" for the linefeed
[=advancing the paper roller 1 row] and the carriage return [=sending the
carriage with all the letter hammers back to the first position]

The order of first Cr and then Lf was extremely important, because the
time it took to return was covered by the Lf time [ 5+2 bits at 45.45
baud.]
If they were reversed the first letter of the next line was printed
somewhere in the middle of the line and subsequent letters as a line over
it.

Some operating system definitions [like Windows?] still define the
combination as the new paragraph signal in ascii text. Others [Linux,
Unix, Amiga] only use the Lf.

VBscript has all 3 defined as constants:

VbCr = ascii decimal 13 = hex 0C
VbLf = ascii decimal 10 = hex 0A
VbCrLf = VbCr & VbLf

But I repeat, only 1 touch of the <return> key is necessary.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #5
"Rob Meade" <ro********@NO-SPAM.kingswoodweb.net> wrote in message
news:Ye**********************@news-text.cableinet.net...
"eddie wang" wrote...
What is CRLF? Thanks.
CRLF = Carriage Return Line Feed

Effectively hitting the return key twice, thus leaving an empty line

between text.

Wrong. Effectively hitting the return key once, thus leaving no empty line
between text.

You can use it in ASP with vbScript like so :

<%
strText = "This is my first sentance" & vbCRLF
strText = strText & "This is my second sentance"

Response.Write strText
%>

The result of the above would look something like this:
This is my first sentance
This is my second sentance

Note, there is no extra line between the two.
Regards,
Peter Foti
PS- Incorrect spelling of sentence left in to match the example above. :)

Jul 19 '05 #6
Yeah ok, put those lighters down "flame boys" :o)

My use of the old vbCRLF is typically when constructing emails being sent
from ASP, usually I'd pop 2 of them on the end of a line to leave a space -
clearly got carried away with the thought of posting something helpful - and
then failing :o/

Thank you also for pointing out my illiteracy skills...

Regards

Rob
Jul 19 '05 #7
"Rob Meade" <ro********@NO-SPAM.kingswoodweb.net> wrote in message
news:Zn**********************@news-text.cableinet.net...
Yeah ok, put those lighters down "flame boys" :o)

My use of the old vbCRLF is typically when constructing emails being sent
from ASP, usually I'd pop 2 of them on the end of a line to leave a space - clearly got carried away with the thought of posting something helpful - and then failing :o/

Thank you also for pointing out my illiteracy skills...


LOL! Hey, we all make mistakes. :)

Best,
Peter
Jul 19 '05 #8
"Rob Meade" <ro********@NO-SPAM.kingswoodweb.net> wrote:
"eddie wang" wrote...
What is CRLF? Thanks.


CRLF = Carriage Return Line Feed

Effectively hitting the return key twice, thus leaving an empty line between
text.


Nope, in DOS and Windows a CRLF is a single line break. To get an
empty line between lines of text (double-space) you'd need two of
them: CRLFCRLF

--
Tim Slattery
MS MVP(DTS)
Sl********@bls.gov
Jul 19 '05 #9
On Wed, 03 Mar 2004 10:09:13 -0800, eddie wang <ew***@kmg.com> wrote:
What is CRLF? Thanks.


And to expand yet some more:

CR is a return of the carriage to the first character position, if you
only did this each line would print over the top of the previous one.

LF is to feed the paper one line's height so the above doesn't happen.
But if you don't return the carriage to the home character then you
end up with stair-stpe text.

It's interpreted differently between DOS and UNIX systems as well, in
a DOS/Windows system a CR includes a LF, but Unix systems keep them
separate. You may run into this in some data files where the
DOS/Windows lack of a LF can screw up dipslays on some older Unix
systems (Virtually all current implementations got intelligent).

In ASP code, it's often used in a VbCrLf format, after a
Response.Write or other statement. Such as:

Response.Write "This is text" & VbCrLf
Response.Write "This is more text" & VbCrLf

This way, a View Source shows:

Response.Write "This is text"
Response.Write "This is more text"

Otherwise you'd see the code as:

Response.Write "This is text"Response.Write "This is more text"

Handy for readability and debugging, as is the use of the &_ to break
single-line statements over multiple lines in the code.

Jeff
Jul 19 '05 #10
"eddie wang" wrote:

What is CRLF? Thanks.



--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #11
"Peter Foti" wrote:

CRLF = Carriage Return Line Feed

Effectively hitting the return key twice, thus leaving
an empty line between text.


Wrong. Effectively hitting the return key once, thus leaving no
empty line between text.


More like hitting [Enter] than [Return]. And yes, some of us have separate
[Enter] and [Return] keys. On our Macs, anyway.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #12
"Dave Anderson" <GT**********@spammotel.com> wrote in message
news:O2**************@TK2MSFTNGP10.phx.gbl...
"eddie wang" wrote:

What is CRLF? Thanks.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per

message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.


lol. :)
Jul 19 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: McKirahan | last post by:
How would I use a regular expression to remove all trailing Carriage Returns and Line Feeds (%0D%0A) from a textarea's value? Thanks in advance. Also, are they any great references for learning...
5
by: McKirahan | last post by:
I'd like to use regular expressions to remove extraneous Carriage Return Line Feeds (CrLf) from a textarea before the form is submitted. I'd like to remove all trailing CrLf's and convert all...
3
by: Jon | last post by:
Hi... I'm getting stumped over the something that MUST be simple...basically, I'm trying to replace the characters 0D0A with a crlf, using Regex.Replace(). The problem is, the replaced string...
1
by: Jack Wright | last post by:
Dear All, In a multiline field if I enter the following way: Mangesh Anant Kodilkar There is a carriage return after each word. Now when I press save,it loses the CRLF characters. This is not...
2
by: Michael Persaud | last post by:
Hi All, Im trying to have a few strings presented in a LABEL. However the CRLF is not working. eg str = str1 + crlf + str2 + crlf + str3 label.text= str Do i need to declare the crlf as a...
2
by: Andrew | last post by:
Hello. I am working with very large files in my .NET project (1 million plus records). Some of these files do not have crlf's, which makes it very hard to read the file without a layout or record...
0
by: Tomas | last post by:
When I use a __doPostBack to submit a page to the server the last textbox on the page always contains a CRLF. I've used HttpRequest.SaveAs to dump the entire request (IIS 6) to disk and the body of...
8
by: kerberoz | last post by:
whats the equivalent following ControlChars.Lf, ControlChars.Cr, ControlChars.CrLf code in vb.net
9
by: amyl | last post by:
I have an application that is reading data from text files to the first occurrence of a double crlf. I have this working using streamreader and using readline. However, I am hitting 500+ files...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.