java - how to read file in hex format -


i have file have read java code. can open file in hex editor, content '00 01 00 00' in opened file hex editor.

i want following operation java code:- 1. read content. 2. print it. (it should print 00 01 00 00). can perform operation on data.

but problem is,

when doing above operation on file using "fileinputstream" instead of printing '00 01 00 00' printing '0 1 0 0' every byte converted decimal value.

so there way can perform desired operation?


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -