mr. blonde
Member Join Date: Aug 2000
Posts: 393
Re: Text or Binary?
--------------------------------------------------------------------------------
EXE's always start with "MZ". Beyond that you can do a character frequency analysis on the file. Binary files will yield a more random pattern, while a text file will be almost entirely printable ASCII. I have code somewhere that does such a thing if you're interested, though it's in QBASIC.