Lost Password?

Go Back   CodeCall Programming Forum > Software Development > C# Programming

C# Programming C# (pronounced C-sharp) is a new object oriented language from Microsoft and is derived from C and C++. It also borrows a lot of concepts from Java too including garbage collection.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-05-2008, 09:10 PM
RobertQQ RobertQQ is offline
Newbie
 
Join Date: Jul 2008
Posts: 7
Rep Power: 0
RobertQQ is on a distinguished road
Lightbulb newb question

Hi all!! I was just curious what the difference between console.write() and console.writeline() is. The book I got has the two in the code it has written but it doesnt explain the difference...and they both seem to do the same thing. Thanks for the help!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-05-2008, 11:28 PM
gaylo565's Avatar   
gaylo565 gaylo565 is offline
Programmer
 
Join Date: May 2007
Location: flagstaff, az
Posts: 152
Last Blog:
String Manipulation wi...
Rep Power: 7
gaylo565 has a spectacular aura aboutgaylo565 has a spectacular aura about
Default Re: newb question

Write line has a carriage return after the string entered
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-06-2008, 02:52 PM
RobertQQ RobertQQ is offline
Newbie
 
Join Date: Jul 2008
Posts: 7
Rep Power: 0
RobertQQ is on a distinguished road
Default Re: newb question

Thanks gaylo565!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 07-06-2008, 03:14 PM
Xav's Avatar   
Xav Xav is offline
Code Warrior
 
Join Date: Mar 2008
Location: London, England
Posts: 5,321
Last Blog:
Web slideshow in JavaS...
Rep Power: 45
Xav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to beholdXav is a splendid one to behold
Send a message via MSN to Xav
Default Re: newb question

Well, that was solved quickly...

Of course, you can just append a carriage return using "\r\n" at the end, but it's kinda pointless when you have WriteLine(). These two functions also crop up a lot in the System.IO namespace, so remember the difference between them.
__________________
[TRUTH] TcM is the best moderator ever! [/TRUTH]
"Valid XHTML is like sex - everybody claims to have the same goal, but everybody has their own tricks and results vary wildly."
Mr. Xav | Website | Forums | Blog
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Question about IT jobs in USA. Red19 The Lounge 9 06-01-2008 10:13 AM
Question johnny The Lounge 3 03-17-2008 07:08 AM
n00b class question MerakSpielman C and C++ 15 02-20-2008 10:37 PM
newb question eclipse C and C++ 5 07-22-2007 02:54 AM


All times are GMT -5. The time now is 01:59 PM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
LogicKills ........ 20.00000
sam ........ 20.00000
gaylo565 ........ 18.00000
|pH| ........ 15.00000
WingedPanther ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 67%

Ads