On or about Tue, May 22, 2001 at 02:48:17PM +0100, Robert Thompson typed:

>Open up the file, read in the first few bytes and grab the magic number.
>Most types of binary file have a marker of some kind to designate what they
>are. Any half decent book on graphics programming should be able to tell you
>what the magic numbers are for the main graphics types.

man 1 file
man 5 magic
less /usr/share/misc/magic # on many systems

Roger

Reply via email to