バイナリファイルの読み込み

計測デバイスのデータはよくわからない形式でデータを持っている時があるのでメモ。
http://sas-and-r.blogspot.jp/2012/09/example-101-read-file-byte-by-byte.html