Skip to content
Back to formatted view

Raw Message

Message-ID: <2021175489.2234979.1465831037404.JavaMail.yahoo@mail.yahoo.com>
Date: 2016-06-13T15:17:17Z
From: Fahman Khan
Subject: Binary Value into Text

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]]