Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Originally posted by Naren Chivukula:
Hi,
I got something out of your replies. Let me correct if I'm wrong in paraphrasing..
\r makes the control to come to the start of the line without going to next line
\f makes only to take the control to next line(next line or next page I'm not sure)
Now we can interpret \n as combination of \r\f
Thanks and Regards,
Narendranath
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
Originally posted by Naren Chivukula:
Is that combination "\r\n" or "\r\f"?
Originally posted by Layne Lund:
It's "\r\n" or "\n\r"
Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
You are mentioning the combination "\r\n". But, I mean to say that \n is the combination of "\r\f". Kindly observe the escape sequences carefully and reply me.
Originally posted by Timmy Marks:
\f is called form feed, which on printers goes to the top of the next page.
\n is the newline character, which goes to the next line. Some OSes (along with Java) will go to the beginning of the next line with \n, some just go down a line. With OSes that only go down a line, you must combine the \n with a \r (AFAIK, order is unimportant).
So to answer your original question, a \n is not equivalent to \f\r.
By the way, this has all been said on the thread already.
Tony Morris
Java Q&A (FAQ, Trivia)
"I'm not back." - Bill Harding, Twister
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|