Module CCLinq.IO

module IO: sig .. end

val slurp : Pervasives.in_channel -> string CCLinq.t
Slurp the whole channel in (blocking), returning the corresponding string. The channel will be read at most once during execution, and its content cached; however the channel might never get read because evaluation is lazy.
val slurp_file : string -> string CCLinq.t
Read a whole file (given by name) and return its content as a string
val lines : string CCLinq.t -> string CCLinq.t
Convert a string into a collection of lines
val lines' : string CCLinq.t -> string list CCLinq.t
Convert a string into a list of lines
val join : string -> string CCLinq.t -> string CCLinq.t
val unlines : string CCLinq.t -> string CCLinq.t
Join lines together
val out : Pervasives.out_channel -> string CCLinq.t -> unit
val out_lines : Pervasives.out_channel -> string CCLinq.t -> unit
Evaluate the query and print it line by line on the output

Run methods

val to_file : string -> string CCLinq.t -> unit CCLinq.with_err
val to_file_exn : string -> string CCLinq.t -> unit
val to_file_lines : string -> string CCLinq.t -> unit CCLinq.with_err
val to_file_lines_exn : string -> string CCLinq.t -> unit