Odoc_utils.Io_utilswith_open_* are resource safe wrappers around opening and closing channels. They are equivalent to the same functions in OCaml 4.14's In_channel and Out_channel.
val with_open_in : string -> (in_channel -> 'a) -> 'aval with_open_in_bin : string -> (in_channel -> 'a) -> 'aval with_open_out : string -> (out_channel -> 'a) -> 'aval with_open_out_bin : string -> (out_channel -> 'a) -> 'aval with_formatter_out : string -> (Format.formatter -> 'a) -> 'aLike with_open_out but operate on a Format buffer.