title: How to check whether my C# code is reading the file in asynchronous mode?
body: <pre><code>public void fileReader()
  {
  Stream stream = new FileStream(filename, FileMode.Open , FileAccess.Read , FileShare.None, 30, true);
  byte[] Buffer = new byte[30];
  while (stream.Read(Buffer, 0, 30) &gt; 0)
  { 
   label1.text=Encoding.UTF8.GetString(Buffer); 
   Thread.Sleep(1000);
  }
  stream.Dispose();
  }
  </code></pre>
  
  <p>THIS IS MY C# CODE TO READ 30 BYTES OF DATA AT A TIME FROM A FILE. I've created the Stream with FileStream constructor having useAsync=true. Here stream.Read method is used. </p>
  
  <ol>
  <li><p>Is this read operation working in ASYNCHRNOUS mode? </p></li>
  <li><p>How to check this? </p></li>
  <li><p>Another problem is that <code>Encoding.UTF8.GetString(Buffer);</code> gives white spaces as '□' character... y?</p></li>
  <li><p>Is there any other way to make a 1 second delay other than <code>Thread.Sleep(1000);</code> ?</p></li>
  </ol>