title: Download A Single File Using Multiple Threads
body: <p>I'm trying to create a 'Download Manager' for Linux that lets me download one single file using multiple threads. This is what I'm trying to do : </p>
  
  <ol>
  <li>Divide the file to be downloaded into different parts by specifying an offset</li>
  <li>Download the different parts into a temporary location</li>
  <li>Merge them into a single file.</li>
  </ol>
  
  <p>Steps 2 and 3 are solvable, and it is at Step #1 that I'm stuck. How do I specify an offset while downloading a file? </p>
  
  <p>Using something along the lines of <code>open("/path/to/file", "wb").write(urllib2.urlopen(url).read())</code> does not let me specify a starting point to read from. Is there any alternative to this?</p>