Flushing System.Console.Read()
<p>I'm learning C# for one of my classes and for my assignment I need to get user input from the console.</p>

<p>In my program I have:</p>

<pre><code>choice = (char)System.Console.Read();
</code></pre>

<p>Later on in the program I use</p>

<pre><code>if (System.Console.ReadLine() == "y")
</code></pre>

<p>to get input from the user.</p>

<p>The second statement gets skipped when I run the program. I'm guessing that the System.Console.Read() is leaving a newline in the stream. In C/C++, there's fflush() and cin.ignore(). What is the equivalent function in C#?</p>

<p>I know that it's probably easier for me to use ReadLine() or ReadKey(), but I'm just curious as to how to use Read() with newlines</p>
