(**************************************************************************)
(*  This file is part of BINSEC.                                          *)
(*                                                                        *)
(*  Copyright (C) 2016-2024                                               *)
(*    CEA (Commissariat à l'énergie atomique et aux énergies              *)
(*         alternatives)                                                  *)
(*                                                                        *)
(*  you can redistribute it and/or modify it under the terms of the GNU   *)
(*  Lesser General Public License as published by the Free Software       *)
(*  Foundation, version 2.1.                                              *)
(*                                                                        *)
(*  It is distributed in the hope that it will be useful,                 *)
(*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *)
(*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *)
(*  GNU Lesser General Public License for more details.                   *)
(*                                                                        *)
(*  See the GNU Lesser General Public License version 2.1                 *)
(*  for more details (enclosed in the file licenses/LGPLv2.1).            *)
(*                                                                        *)
(**************************************************************************)

(** Extra functions over files *)

val load : string -> string
(** [load filename] return a string with the complete text of the file *)

val copy : string -> string -> unit
(** [copy src dst] copies filename [src] to filename [dst]*)

val readlines : string -> string list
(** [readlines filename] return the list of the lines of the complete text of
    the file [filename] *)

val has_suffix : suffixes:string list -> string -> bool
(** [has_suffix ~suffixes filenam] returns [true] if [filename] ends with any
    of the provied [suffixes] *)
