I'm trying to read binary from a text file into java - I want to read 8 bits and then convert that to a CHAR.
This is my code:
The problem I have is it's reading in as a number. This is my output:
going to decrypt value of answer b4 parsing: 0 value of answer: 17 inside decrypt for printb this is the output: ◄ value of answer b4 parsing: 17 value of answer: 14 inside decrypt for printb this is the output: ♫
basically I want value of answer b4 parsing to be : 00001111 (as a string) value of answer: 00001111 (but as a int not a string) because i pipe that into a decryption algoritm that takes the 8 bits and decrypts then i can convert back to char.