package riot

  1. Overview
  2. Docs
type 'kind file
type read_file = [ `r ] file
type write_file = [ `w ] file
type rw_file = [ `r | `w ] file
val fd : _ file -> Unix.file_descr
val open_read : string -> read_file
val open_write : string -> write_file
val close : _ file -> unit
val remove : string -> unit
val seek : _ file -> off:int -> int
val stat : string -> Unix.stats
val to_reader : read_file -> read_file IO.Reader.t
val to_writer : write_file -> write_file IO.Writer.t
OCaml

Innovation. Community. Security.