val close_in : Stdlib.in_channel -> unitval close_out : Stdlib.out_channel -> unitval close_both : (Stdlib.in_channel * Stdlib.out_channel) -> unitval input_lines : Stdlib.in_channel -> string listval copy_channels : Stdlib.in_channel -> Stdlib.out_channel -> unitThis function is not safe to use from multiple threads, even if operating on unrelated channels because it uses a statically-allocated global buffer.
val read_all : Stdlib.in_channel -> stringtype path = Path.tval open_in : ?binary:bool -> path -> Stdlib.in_channelval open_out : ?binary:bool -> path -> Stdlib.out_channelval with_file_in : ?binary:bool -> path -> f:(Stdlib.in_channel -> 'a) -> 'aval with_file_out : ?binary:bool -> path -> f:(Stdlib.out_channel -> 'a) -> 'aval with_lexbuf_from_file : path -> f:(Stdlib.Lexing.lexbuf -> 'a) -> 'aval lines_of_file : path -> string listval read_file : ?binary:bool -> path -> stringval write_file : ?binary:bool -> path -> string -> unitval compare_files : path -> path -> Ordering.tval compare_text_files : path -> path -> Ordering.tval write_lines : ?binary:bool -> path -> string list -> unitval setup_copy : ?chmod:(int -> int) -> src:path -> dst:path -> unit -> Stdlib.in_channel * Stdlib.out_channelval file_line : path -> int -> stringval file_lines : path -> start:int -> stop:int -> (string * string) listmodule String_path : sig ... end