fflush equivalent in c#

  • Thread starter Thread starter vijlak
  • Start date Start date
V

vijlak

Hi All,

I am really stuck here. I have to read an in input ( I am writing a
console app in C# ) and it doesnt wait for the user input. Instead
it's taking the value of the carriage return (13) from user's previous
input. What am i doing wrong?

Is there an equivalent of the famous fflush in c#?

I appreciate your help.

-Thanks,
Rajesh
 
Console.Readline() will cause the console display to pause for user input
(and the resulting carriage return). The data entered (if any) is returned
from the method call.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top