Home All Groups Group Topic Archive Search About

fflush equivalent in c#

Author
5 Feb 2007 1:13 AM
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

Author
5 Feb 2007 4:24 AM
Scott M.
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.


<vij***@gmail.com> wrote in message
Show quote
news:1170637985.785786.156790@s48g2000cws.googlegroups.com...
> 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
>

AddThis Social Bookmark Button