Hi, i'm just wondering if anybody knows how to get the first few hex symbols of a file in java, for example if i input a pdf into my coding i want my program to output, e.g "25 46 44 38" does anybody know how to do this?
I have been able to print out the hex of a whole file but not managed to set a maximum read limit so that my code only takes a certain amount of values