How do I read a file header?
807597Nov 4 2005 — edited Oct 6 2008I want to validate that a given file actually is of a specific type. For instance that a .pdf file actually is a pdf file.
To achive this I want to read the header of the file and validate the header information.
Exactly how do I read header info from a file??
Links to examples or tutorials would be very welcome.