title: changing while loops to for loops
body: <p>I'm trying to change this while loop into a for loop and I'm not getting particularly far. I am new ish to programming, so apologies if this is a trivial task.</p>
  
  <pre><code>while (read &lt; fileBytes.length
         &amp;&amp; (numRead = diStream.read(fileBytes, read, fileBytes.length - read)) &gt;= 0)
  {
      read = read + numRead;
  }
  </code></pre>