Method: IO.binwrite
- Defined in:
- io.c
.binwrite(path, string, offset = 0) ⇒ Integer
Behaves like IO.write, except that the stream is opened in binary mode with ASCII-8BIT encoding.
When called from class IO (but not subclasses of IO), this method has potential security vulnerabilities if called with untrusted input; see Command Injection.
12436 12437 12438 12439 12440 |
# File 'io.c', line 12436
static VALUE
rb_io_s_binwrite(int argc, VALUE *argv, VALUE io)
{
return io_s_write(argc, argv, io, 1);
}
|