package binsec

  1. Overview
  2. Docs

doc/binsec.base/Binsec_base/File_utils/index.html

Module Binsec_base.File_utilsSource

Extra functions over files

Sourceval load : string -> string

load filename return a string with the complete text of the file

Sourceval copy : string -> string -> unit

copy src dst copies filename src to filename dst

Sourceval readlines : string -> string list

readlines filename return the list of the lines of the complete text of the file filename

Sourceval has_suffix : suffixes:string list -> string -> bool

has_suffix ~suffixes filenam returns true if filename ends with any of the provied suffixes