package dune

  1. Overview
  2. Docs

IO operations

val close_in : Pervasives.in_channel -> unit
val close_out : Pervasives.out_channel -> unit
val close_both : (Pervasives.in_channel * Pervasives.out_channel) -> unit
val input_lines : Pervasives.in_channel -> string list
val copy_channels : Pervasives.in_channel -> Pervasives.out_channel -> unit
val read_all : Pervasives.in_channel -> string
module type S = sig ... end
include S with type path = Path.t
type path = Path.t
val open_in : ?binary:bool -> path -> Pervasives.in_channel
val open_out : ?binary:bool -> path -> Pervasives.out_channel
val with_file_in : ?binary:bool -> path -> f:(Pervasives.in_channel -> 'a) -> 'a
val with_file_out : ?binary:bool -> path -> f:(Pervasives.out_channel -> 'a) -> 'a
val with_lexbuf_from_file : path -> f:(Lexing.lexbuf -> 'a) -> 'a
val lines_of_file : path -> string list
val read_file : ?binary:bool -> path -> string
val write_file : ?binary:bool -> path -> string -> unit
val compare_files : path -> path -> Ordering.t
val compare_text_files : path -> path -> Ordering.t
val write_lines : ?binary:bool -> path -> string list -> unit
val copy_file : ?chmod:(int -> int) -> src:path -> dst:path -> unit -> unit
val setup_copy : ?chmod:(int -> int) -> src:path -> dst:path -> unit -> Pervasives.in_channel * Pervasives.out_channel
val file_line : path -> int -> string
val file_lines : path -> start:int -> stop:int -> (string * string) list
module String_path : S with type path = string
OCaml

Innovation. Community. Security.