I need to be able to read instructions from a .lda file (laser data file) for a project I need to work on. It's a type of binary file so provided I use the right text editor I can see the contents in hex but getting Java to read it is proving to be tricky. That being said I've never worked with binary files before.
Each line in the file is in this format: 0000 0000 0000 0000 0000 0000 0000 0000 being Hex.
I need to be able to read in each set of 4 digits one at a time.
Any ideas? Thanks.