I have a file which I have to read from my JAVA code. I can open file in HEX editor, then content is '00 01 00 00' in the opened file from HEX editor.
I want to do following operation from my JAVA code:- 1. read the content. 2. print it. (It should print as 00 01 00 00). So that I can perform some operation on data.
But the problem is,
When I am doing above operation on the file using "FileinputStream" then instead of printing as '00 01 00 00' it is printing as '0 1 0 0' that is every byte is converted into the decimal value.
So is there any way I can perform my desired operation?