time efficient way divide file into chunks
<p>How can I time efficiently divide a file into small chunks and each of these chunks should have sequence number ? Example:</p>

<pre><code> -----------------------            ----  ----      ----
 |                     |  =&gt; =&gt; =&gt;  |  |  |  |  ... |  |
 -----------------------            ----  ----      ----

                         seq. num : 0     1         n      
         file                          equal size chunks
</code></pre>

<p>Sequence number is the first data in the chunks, just like a header. </p>

<p>EDIT: size can be anything for example 50 KB or 1 MB.</p>
