package stdcompat

  1. Overview
  2. Docs
type t = Stdlib.in_channel
type open_flag = Stdlib.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 stdin : Stdlib.in_channel
val open_bin : string -> Stdlib.in_channel
val open_text : string -> Stdlib.in_channel
val open_gen : Stdlib.open_flag list -> int -> string -> Stdlib.in_channel
val read_and_close : Stdlib.in_channel -> (Stdlib.in_channel -> 'a) -> 'a
val with_open_bin : string -> (Stdlib.in_channel -> 'a) -> 'a
val with_open_text : string -> (Stdlib.in_channel -> 'a) -> 'a
val with_open_gen : Stdlib.open_flag list -> int -> string -> (Stdlib.in_channel -> 'a) -> 'a
val seek : Stdlib.in_channel -> int64 -> unit
val pos : Stdlib.in_channel -> int64
val length : Stdlib.in_channel -> int64
val close : Stdlib.in_channel -> unit
val close_noerr : Stdlib.in_channel -> unit
val input_char : Stdlib.in_channel -> char option
val input_byte : Stdlib.in_channel -> int option
val input_line : Stdlib.in_channel -> string option
val input : Stdlib.in_channel -> bytes -> int -> int -> int
val really_input : Stdlib.in_channel -> bytes -> int -> int -> unit option
val really_input_string : Stdlib.in_channel -> int -> string option
val set_binary_mode : Stdlib.in_channel -> bool -> unit
val add_channel_to_the_end : chunk_size:int -> Stdlib__Buffer.t -> Stdlib.in_channel -> unit
val input_all : Stdlib.in_channel -> string
OCaml

Innovation. Community. Security.