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

the difference between write and writeln

P: n/a
What is the difference?
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies

P: n/a
Jason Cook wrote:
What is the difference?

Please put your question in the body, and not in the subject.

One just writes to the outputstream, the other writes a line (meaning that
the next write/writeln call will be written on a new line).

Christophe Vanfleteren
Jul 20 '05 #2

P: n/a
Jason Cook wrote:
What is the difference?

writeln = "write line"

Some JavaScript engines append newline when using writeln(...),
but not when using write(...). I recommend to use write("...\n")
if newline is required.

Jul 20 '05 #3

P: n/a

"Jason Cook" <ja*********> wrote in message
news:d8************************** om...
What is the difference?

The write method is the same as the writeln method, except the write method
does not append a newline character to the end of the output.

Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.