Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write && WriteLine

Status
Not open for further replies.

hisheeraz

Programmer
Mar 24, 2003
28
AU
hey guys
could some please explain me what is the difference between
Code:
console.Write();
and
console.WriteLine();
not much of a trouble to me but they both seems to doing the same job in C# dont they ?if they are not then what is the difference?
Thanks.

§ Rented Lips §
----------------
Begning To Learn
----------------
 
WriteLine puts a charage return and line feed at the end of what you output.

So
Code:
console.Write("A");
console.Write("B");
console.WriteLine("C");
console.WriteLine("D");

gives output that looks like this:

ABC
D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top