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]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.