identify file type by file magic numbers.