用来查找算法如istream::read//readafileintomemory#include#includeusingnamespacestd;intmain(){intlength;char*buffer;ifstreamis;is.open("test.txt",ios::binary);//getlengthoffile:is.seekg(0,ios::end);length=is.tellg();is.seekg(0,ios::beg