package stdcompat

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

Innovation. Community. Security.