The "brute force" method would be to open the file with a
BinaryReader, read every byte in the file and if any byte is outside
the range of standard ASCII characters, then it is a binary file. You
may have to take into account possible international characters.
I suppose it could be possible that a true binary file may not contain
any non-standard ASCII characters, but that, IMHO, would be rare.
More to the point, it's possible to be a text file which contains non-
ASCII characters. If it's encoded in UTF-8, for instance, it may well
contain a BOM at the start which is non-ASCII, as well as non-ASCII
encoded characters.
For the OP: there's no such thing as a "text file" or a "binary file"
really - it's all a question of interpretation. A file is (at least in
the simple case - there may be alternate streams etc) just a sequence
of bytes. Any particular sequence of bytes can be treated as binary,
or perhaps treated as text depending on which encoding is chosen.
Jon