package core_extended

  1. Overview
  2. Docs
type row = string list
val output_lines : ?quote:char -> ?sep:char -> ?line_breaks:[ `Windows | `Unix ] -> Core.Out_channel.t -> row list -> unit

Prints a valid csv file to a given channel. The line_breaks arg can be used to override the default line ending of "\r\n" (DOS/Windows line endings). Example ~line_breaks:`Unix to get *nix line endings

val line_to_string : ?quote:char -> ?sep:char -> row -> string

Convert one CSV line to a string.

OCaml

Innovation. Community. Security.