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.

http://www.rgagnon.com/javadetails/java-0544.html

No correct solution

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top