16,472
社区成员
发帖
与我相关
我的任务
分享
ifstream::pos_type size;
char * memblock;
std::ifstream FastFile("d:\\demo.dat");
if (FastFile.is_open(), ios::in|ios::binary)
{
size = FastFile.tellg();
memblock = new char [size];
FastFile.seekg (0, ios::beg);
FastFile.read (memblock, size);
FastFile.close();
}