hexdump {Rstreams} | R Documentation |
Displays a mixed hex and ascii dump of the content of a stream.
hexdump(s, len)
s |
an already opened stream. |
len |
optional: how many bytes to read and display. |
Reads bytes from the stream and displays them on the standard output location, in a mixed hex and ascii display.
The default is to dump the rest of the stream; if a shorter length is given, only that many bytes will be read and displayed.
none
s <- openstream("mydata", "write") writeint(s, 1:100, 1) closestream(s) s <- openstream("mydata", "read") hexdump(s) seekstream(s,0) hexdump(s,10) closestream(s) unlink("mydata")