C# Modulus Counting
<p>Good Day,</p>

<p>I am writing an application where I'm downloading a file that is over 30MB.  I am keeping track of how many bytes that have been currently been downloaded.</p>

<p>My question is:</p>

<p>I want to determine when I go past 1M, 2M, 3M and so forth.</p>

<p>My logic is:</p>

<pre><code>int totalFileSave = 0;
...
...
int bytesRead = responseStream.Read(buffer, 0, 4096);
totalFileSave += bytesRead;

while (bytesRead &gt; 0) {
    // How do I test when I hit 1M, 2M, 3M and so forth...
    bytesRead = responseStream.Read(buffer, 0, 4096);
    totalFileSave += bytesRead;
}
</code></pre>
