Problems with console output in C#
<p>I have a litte problem on <code>Console.WriteLine()</code>. I have my while(true) loop that would check the data if exist and it would allow checking the data 3 times. And inside my loop I have this message: </p>

<blockquote>
  <p>Console.WriteLine(string.format("Checking data {0}",ctr));</p>
</blockquote>

<p>Here's my sample code below:</p>

<pre><code>int ctr = 0;

while(true)
{
  ctr += 1;

  Console.WriteLine(string.format("Checking data {0}...",ctr))  

  if(File.Exist(fileName)) 
     break;

  if(ctr &gt; 3)
     break;

}
</code></pre>

<p>Let's assume that data was not found.</p>

<p>My current output show like this:</p>

<pre><code>Checking data 1...
Checking data 2...
Checking data 3...
</code></pre>

<p>But the correct output that I should want to achieve should looks like this:</p>

<pre><code>Checking data 1...2...3...
</code></pre>

<p>I would show only in one line.</p>

<p>Edit: </p>

<p>I forgot: In addition to my problem I want to append "Not Found" and "Found".</p>

<p>Here's the sample Output: </p>

<ol>
<li><p>if data found on the First loop output looks like this.</p>

<p>Checking data 1... Found!</p></li>
<li><p>if data found on the Second loop output looks like this.</p>

<p>Checking data 1...2...Found!</p></li>
<li><p>if data found on the Third loop output looks like this.</p>

<p>Checking data 1...2...3...Found!</p></li>
</ol>

<p>AND If data not found</p>

<ol>
<li>Checking data 1...2...3... Not Found!</li>
</ol>
