FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


How to clear console buffers





umeshtangnu
Hi
i have to take input from user in console using Console.Read() and Console.Readline() functions but whenever i use Console.Readline() before Console.Read() , the Console.Read() funtion does not execute
plz help
eg

Code:

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication4
{
    class Program
    {
        static void Main(string[] args)
        {
            int x=Console.Read();
            string str = Console.ReadLine();
          int z=  Console.Read();
        }
    }
}
Related topics
Java applet error.
jython for web applets
Ps3 Or Xbox 360
script backup database
what game should I buy
C++ TUTORIAL : INTRODUCTION TO C++
751 Useful Windows XP Files
One More Question (About Points and FRIH$)
Windows Vista Official Thread
A soldier's rant
Which is better, DS or PSP?
Frankfurt Motor Show, 2005
Install recovery console without the Windows XP CD!
JAva HELP
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.