-
very perplexing
Can anyone tell me how to make the lpBuffer from ReadFile into a usable string. I need to open a file, read it, then search the entire buffer for certain things. I can't figure out how make what is returned into something I can use. I'm used to VB but I have to make this in C++ which I am not very accustomed to.
-
Since lpBuffer probably is char*, you can directly use it as string. If it is not, you need to cast the pointer, like (char*)lpBuffer.
And you got to append a '\0' to the end.