There is a magic number associated with each binary file , does anyone know how to retrieve this information from the file?
The unix file command uses magic number. see the file man page for more.(and where to find the magic file )