Can the Win32 API help? The only functions I could find were the CreateFile(),WriteFile(),and ReadFile(). Right now Im storing the stuff I get from the file in a BYTE array. But Im not sure if that is binary, or how to handle that type of data type?
Would I just handle them like this?
BYTE Bf[11];
// Get data from file and store in Bf
if(Bf[0]==1)
// The first byte is a 1?
I read about handling binary files with the fstream in regular C++. But Im not sure if that's only for consoul, or if it would work with window apps too.
There's no real difference between a text file and a binary file, technically speaking. Distinctions are sometimes made for various purposes; how the file is displayed, perhaps (e.g. TextPad displays normal text for text files but turns into a hex editor for binary files) or how line endings are treated (e.g. in Python you have to specify if you're opening a binary file, so that it doesn't auto-convert line endings to Unix format).
Both the Win32 API and C++ streams give you the raw binary data without doing any translations, so don't worry about it. How you're doing it is fine. (But beware of buffer overflows, of course; if your buffer holds 11 characters, don't ever read more than 11 characters into it, or you will die a painful painful death.)