Magic number file checking
-
30-10-2019 - |
Question
I'm attempting to read magic numbers/bytes to check the format of a file. Will reading a file byte by byte work in the same way on a Linux machine?
Edit: The following shows to get the magic bytes from a class file using an int. I'm trying to do the same for a variable number of bytes.
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow