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.

This question has already been answered. Start a new discussion instead.