2016-12-01 21:27:53 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
2018-02-06 00:17:03 +04:00
|
|
|
(* Copyright (c) 2014 - 2018. *)
|
2016-12-01 21:27:53 +04:00
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
2017-01-23 14:09:45 +04:00
|
|
|
open Error_monad
|
|
|
|
|
2016-12-01 21:27:53 +04:00
|
|
|
(** Loads a JSON file in memory *)
|
2017-01-23 14:09:45 +04:00
|
|
|
val read_file : string -> Data_encoding.json tzresult Lwt.t
|
2016-12-01 21:27:53 +04:00
|
|
|
|
|
|
|
(** (Over)write a JSON file from in memory data *)
|
2017-01-23 14:09:45 +04:00
|
|
|
val write_file : string -> Data_encoding.json -> unit tzresult Lwt.t
|