I am trying to find a way to check if the data in a file is binary or text. I tried to use CFile Open with CFile::typeText as a flag, but I get an exception and informed that this flag is not supported. Can someone please tell me how I can go into a file pick a portion of the data and verify that the data is text data or binary data. I need to be able to verify the portion picked is not text data. When I go into MSVC and open the file it tells me weather or not this data is text, so there must be a way. Please supply the code needed to do this.