writeb

Synopsis

writeb([$handle], "string")

writes the bytes contained in "string" to $handle

Parameters

$handle - the handle to write to (defaults to stdin/stdout)

"string" - the data to write

Examples

# copy.sl [original file] [new file] $in = openf(@ARGV[0]); $data = readb($in, -1); $out = openf(">" . @ARGV[1]); writeb($out, $data); closef($in); closef($out);

See Also