Module OpamFile.ChangesSource
.changes files, bound to the OpamDirTrack module
include OpamFile.IO_FILE with type t := OpamFile.Changes.t
Empty file
Write some contents to a file
Read file contents.
Returns None on non-existing file
Read file contents. Return empty if the file does not exist.
Source
val read_from_channel :
?filename:OpamFile.Changes.t OpamFile.typed_file ->
Stdlib.in_channel ->
OpamFile.Changes.tSource
val read_from_string :
?filename:OpamFile.Changes.t OpamFile.typed_file ->
string ->
OpamFile.Changes.tSource
val write_to_channel :
?filename:OpamFile.Changes.t OpamFile.typed_file ->
Stdlib.out_channel ->
OpamFile.Changes.t ->
unitSource
val write_to_string :
?filename:OpamFile.Changes.t OpamFile.typed_file ->
OpamFile.Changes.t ->
string