Skip to content
instance method

Pathname#binwrite

(::String, ?::Integer offset, ?mode: ::Integer | ::String, ?flags: ::Integer, ?external_encoding: ::encoding, ?internal_encoding: ::encoding, ?encoding: ::encoding, ?textmode: ::boolish, ?binmode: ::boolish, ?autoclose: ::boolish, ?invalid: :replace ?, ?undef: :replace ?, ?replace: ::String, ?fallback: ::Hash[::String, ::String] | ::Proc | ::Method, ?xml: :text | :attr, ?universal_newline: true, ?cr_newline: true, ?crlf_newline: true) -> ::Integer
binwrite(...)

Writes contents to the file, opening it in binary mode.

See File.binwrite.

See also #binread #birthtime #basename #blockdev? also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0