Assuming your file pointer is pFile; you can use :

Code: C
for(int block = 0; block < MAX_BLOCKS; ++block)
{
      // We have to move cursor by block*100*1024 bytes.
      fseek(pFile, block*102400, SEEK_SET);
      .
      .
}

Last edited by SaswatPadhi; 2Jun2009 at 07:55..