jon.recoil.org

Module type OpamFile.IO_FILESource

All Configuration files satisfy this signature

Sourcetype t

File contents

Sourceval format_version : OpamVersion.t
Sourceval empty : t

Empty file

Sourceval write : t OpamFile.typed_file -> t -> unit

Write some contents to a file

Read file contents.

Sourceval read_opt : t OpamFile.typed_file -> t option

Returns None on non-existing file

Sourceval safe_read : t OpamFile.typed_file -> t

Read file contents. Return empty if the file does not exist.

Sourceval read_from_channel : ?filename:t OpamFile.typed_file -> Stdlib.in_channel -> t
Sourceval read_from_string : ?filename:t OpamFile.typed_file -> string -> t
Sourceval write_to_channel : ?filename:t OpamFile.typed_file -> Stdlib.out_channel -> t -> unit
Sourceval write_to_string : ?filename:t OpamFile.typed_file -> t -> string