Read doesn't return control to the applicaiton until you press enter.
ReadKey returns control as soon as a key is pressed.

On 17 Oct, 12:01, "VIKAS GARG" <[EMAIL PROTECTED]> wrote:
> In console input operation three input methods are defined
> 1. Read();
> 2. ReadKey();
> 3. ReadLine();
>
> When the working purpose of Read()  and ReadKey() is same then why have we
> defined these both as two diffrent methods
> Read() reades a single character and left rest part in the line-Buffer
> ReadKey() takes a single character as an input
> then why do we use Read()
> is there any advantage of the feature of Read() according to which it only
> reads the first character and leaves rest part in the Line-Buffer.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/DotNetDevelopment

You may subscribe to group Feeds using a RSS Feed Reader to stay upto date 
using following url  

<a href="http://feeds.feedburner.com/DotNetDevelopment";> 
http://feeds.feedburner.com/DotNetDevelopment</a>
-~----------~----~----~----~------~----~------~--~---

Reply via email to