hexdump {Rstreams}R Documentation

Display a Hex Dump of a Stream

Description

Displays a mixed hex and ascii dump of the content of a stream.

Usage

  hexdump(s, len)

Arguments

s an already opened stream.
len optional: how many bytes to read and display.

Details

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.

Value

none

See Also

openstream

Examples

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")