check filetype with no extension


I need to write a script that will check a file and find out what type of file it is. The files I am downloading none of them have extensions and some are binary others txt and html files. I only want to work with the binary files.

If anyone could point me in the needed direction it would be great.

thank you in advance.

Question Answered as of 3 Years Ago by pyTony
This question has already been solved: Start a new discussion instead
Start New Discussion
View similar articles that have also been tagged: