"=?Utf-8?B?Sm9ubnk=?=" <Jo***@discussions.microsoft.com> wrote in
news:92**********************************@microsof t.com:
Hi all,
I need to find out the hex value of a file. Is this possible? I need
to be able to quickly access and confirm its extension against its
file type (which is as far as i know defined by its hex value).
What is "file type" in this context ?
If I read this question correctly, you want to check if a file has the
correct file extension (like .AVI) depending on the content ? If that's
correct, then no, there is no single way of doing this.
Most files store some kind of signature at the very start so that the
program that use the file can easily check if the file is correct or not.
However, some files doesn't store the signature at the very start and some
files has it at the end, some just a checksum, etc.
In short, there's no "hex value" for a file that uniquely identifies its
type.
However, it might be that I misunderstood your question, in which case
ignore this reply :)
--
Lasse Vågsæther Karlsen
la***@vkarlsen.no
PGP KeyID: 0x0270466B