package stdcompat

  1. Overview
  2. Docs
type t = out_channel
type open_flag = Pervasives.open_flag =
  1. | Open_rdonly
  2. | Open_wronly
  3. | Open_append
  4. | Open_creat
  5. | Open_trunc
  6. | Open_excl
  7. | Open_binary
  8. | Open_text
  9. | Open_nonblock
val stdout : out_channel
val stderr : out_channel
val open_bin : string -> out_channel
val open_text : string -> out_channel
val open_gen : open_flag list -> int -> string -> out_channel
val read_and_close : out_channel -> (out_channel -> 'a) -> 'a
val with_open_bin : string -> (out_channel -> 'a) -> 'a
val with_open_text : string -> (out_channel -> 'a) -> 'a
val with_open_gen : open_flag list -> int -> string -> (out_channel -> 'a) -> 'a
val seek : out_channel -> int64 -> unit
val pos : out_channel -> int64
val length : out_channel -> int64
val close : out_channel -> unit
val close_noerr : out_channel -> unit
val flush : out_channel -> unit
val flush_all : unit -> unit
val output_char : out_channel -> char -> unit
val output_byte : out_channel -> int -> unit
val output_string : out_channel -> string -> unit
val output_bytes : out_channel -> bytes -> unit
val output : out_channel -> bytes -> int -> int -> unit
val output_substring : out_channel -> string -> int -> int -> unit
val set_binary_mode : out_channel -> bool -> unit
val set_buffered : 'a -> 'b -> 'c
val is_buffered : 'a -> bool