why not use CFile::Seek to jump to some position of the file.
extern CFile cfile;
LONG lOffset = 1000, lActual;
lActual = cfile.Seek( lOffset, CFile::begin );

解决方案 »

  1.   

    你可以使用文件映射,FileMapping.
      

  2.   

    operating fat is not a good idea... ntfs?
    i think u'd better generate another file to index. or insert & delete is not easy to implement. like .dbf file, right?
      

  3.   

    CMemFile
    This class is the CFile-derived class that supports memory files. These memory files behave like disk files, except that the file is stored in RAM rather than on disk. A memory file is useful for fast temporary storage, or for transferring raw bytes or serialized objects between independent processes.