T
Hi!
So ist eigentlich ganz leicht:
std::ifstream inputStream;
inputStream.open(File, std::ios::in|std::ios::binary);
inputStream.seekg(0,std::ios::end);
int len = inputStream.tellg(); //Länge des Textes
inputStream.seekg(0,std::ios::beg);
char* buf = new char[len+1]; //allokieren
inputStream.read(buf,len); //lesen
inputStream.close();
buf[len] = '\0';
CString locked = buf;
int found = locked.Find(strPCName, 0); //found ist die Anfangspos des Substrings
Cu TheWanderer