title: How a make a text blink in C# Console Application
body: <p>I'm a newbie in C#</p>
  
  <p>I have this Code</p>
  
  <pre><code>    FileStream D = new FileStream("C:/PersonalAssistant/RecentMeetingDetails.txt", FileMode.Open, FileAccess.Read);
      StreamReader DR = new StreamReader(D);
      DR.BaseStream.Seek(0, SeekOrigin.Begin);
  
      Console.ForegroundColor = ConsoleColor.Red;
      Console.WriteLine("ALERT! ALERT!! ALERT!!!");
      Console.WriteLine("\nYour Closest Appointment is on " + rd + " and has the following info");
  
      string data = DR.ReadLine();
      while (data != null)
      {
           Console.WriteLine(data);
           data = DR.ReadLine();
      }
      D.Close();
      DR.Close();
  </code></pre>
  
  <p>I want this code</p>
  
  <pre><code>    Console.WriteLine("ALERT! ALERT!! ALERT!!!");
  </code></pre>
  
  <p>to be blinking while the other details are being read from the file and displayed on the screen</p>
  
  <p>I have tried this</p>
  
  <pre><code>   private static void WriteBlinkingText(string text, int delay)
     {
          bool visible = true;
          while (true)
          {
              Console.Write("\r" + (visible ? text : new String(' ', text.Length)));
              System.Threading.Thread.Sleep(delay);
              visible = !visible;
          }
     } 
  </code></pre>
  
  <p>and change th console.writeline to </p>
  
  <pre><code>    WriteBlinkingText("ALERT! ALERT!! ALERT!!!",500);
  </code></pre>
  
  <p>it worked but the other details were not displayed...</p>
  
  <p>Pls help me correct this code</p>