title: Is there any way in NSFileManager to get contents of a file only for some range of bytes
body: <p>I have some files that are of size 6.7GB, and more (these are video files).
  I want to get chunks of file data to send to my server, so what I currently do is :</p>
  
  <pre><code>contents = [fileManager contentsAtPath:path];
  if (mFileOffset&lt;[contents length]) {
  NSRange range = NSMakeRange(mFileOffset, (allowedSize&gt;[contents length]?[contents length]:allowedSize);
  contents =[contents subdataWithRange:range];
  </code></pre>
  
  <p>However, this produces a memory issue:</p>
  
  <pre><code>malloc: *** mmap(size=616927232) failed (error code=12)
  *** error: can't allocate region
  *** set a breakpoint in malloc_error_break to debug
  APP(2700,0x4136000) malloc: *** mmap(size=616927232) failed (error code=12)
  *** error: can't allocate region
  </code></pre>
  
  <p>Is there a way like <code>fseek</code> in <code>c++</code> so that I read bytes of the file that come in the specified range only? </p>