Skip to content
Discussion options

You must be logged in to vote

That answer above may be a bit out-of-date, and it seems that you expected a slightly more general answer, since that one's not marked as one!

So, how about this? :)
For starters, file formats mostly have identifying sequences in them. Like a PNG image starts with the bytes ''89h 'PNG' 0Dh 0Ah 00h ? ? ? 'IHDR'", or a 7-Zip archive with "'7z' BC AF 27 1C". Those are called "signatures", and they provide the first (and usually good) idea about what this file is for.

Then there are formats whose signatures are just not enough. Like a Windows .EXE file starts with the text "MZ" or a Microsoft .BMP image with the text "BM" (or other), but any text file at all can begin with two Latin character…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BJNFNE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants