[R] Binary Value into Text
Fahman Khan
fahman_khan75 at yahoo.com
Mon Jun 13 17:17:17 CEST 2016
I have written a following piece of code.
> binaryFile <- file("sampleBinary.dat", 'rb')>readBin(binaryFile, character(), endian="little")
I'm getting a warning message that says
Warning message: In readBin(binaryFile, chracter(), endian="little") : incomplete string at end of file has been discarded
I did research on this topic but was still unable to solve.
My file contains the following binary values: 01101000 01100101 01101100 01101100 01101111 00001010 which is hello in text. I just want to convert this into text.
Any help would be appreciated.
[[alternative HTML version deleted]]
More information about the R-help
mailing list