-
ReadFile Help
How do you tell ReadFile to only read in 1 char of the file and then move to the next, when it's in a buffer then need to check for a space, here is my code...
ReadFile(IpsFile, //valid handle
FileBuffer, //char FileBuffer[64];
1, //Read in 1 byte from the file
&Read, //How many bytes were read
0); //Not used here
when i output the FileBuffer the result is jibberish text, i thought it would be the first letter of the txt file????
-
Perhaps you need to say how you were outputting the buffer.
For example, expecting a single char to be a string would almost certainly result in some garbage being printed.