Stdune.IoIO operations.
val close_in : in_channel -> unitval close_out : out_channel -> unitval close_both : (in_channel * out_channel) -> unitval input_lines : in_channel -> string listval copy_channels : in_channel -> out_channel -> unitval read_all_unless_large : in_channel -> (string, unit) resultTry to read everything from a channel. Returns Error () if the contents are larger than Sys.max_string_length. This is generally a problem only on 32-bit systems. Overflow detection does not happen in the following cases:
Buffer functions.type path = Path.tval open_in : ?binary:bool -> path -> in_channelval open_out : ?binary:bool -> ?perm:int -> path -> out_channelval with_file_in : ?binary:bool -> path -> f:(in_channel -> 'a) -> 'aval with_file_out :
?binary:bool ->
?perm:int ->
path ->
f:(out_channel -> 'a) ->
'aval with_lexbuf_from_file : path -> f:(Lexing.lexbuf -> 'a) -> 'aval lines_of_file : path -> string listval zero_strings_of_file : path -> string listReads zero-separated strings from a file
val read_file : ?binary:bool -> path -> stringval write_file : ?binary:bool -> ?perm:int -> path -> string -> unitval compare_files : path -> path -> Ordering.tval compare_text_files : path -> path -> Ordering.tval write_lines : ?binary:bool -> ?perm:int -> path -> string list -> unitval setup_copy :
?chmod:(int -> int) ->
src:path ->
dst:path ->
unit ->
in_channel * out_channelval file_line : path -> int -> stringval file_lines : path -> start:int -> stop:int -> (string * string) listval cat : ?binary:bool -> ?dst:out_channel -> path -> unitreads a file and prints its contents to stdout or the specified channel
module String_path : sig ... endSymlink with fallback to copy on systems that don't support it.
Hardlink with fallback to copy on systems that don't support it.