Every file is binary data by definition.
A text file contains only data in the specific code page/character set you're using. Which that is would depend on your locale.You'd have to attempt to read the file and throw an exception if you encounter data that doesn't map to text in your expected codepage.
I guess I will just check the extension. Sounds much easier. I will only be dealing with txt and dat files.
Thanks for the input though.