include Extended_commonPervasive functions.
val write_wrap : ?mode:[ `Clobber | `Append | `Atomic | `Atomic_update ] ‑> f:(Pervasives.out_channel ‑> 'a) ‑> string ‑> 'awrite_wrap ~atomic ~f fname Runs f on an out_channel. If mode is
`Atomic or `Atomic_update is set all the changes will be written to a
temporary file which will then be moved over fname otherwise we are
writing straight to fname.
Values for mode:
`Clobber: clear the file on opening (this is the default value)`Append: append to the file`Atomic: replace the file atomically when we are done writing it`Atomic_update: replace the file atomically when we are done writing it
iff its content has been modified.include Textutilsinclude Textutils_kernelmodule Text_block = Textutils_kernel.Text_blockmodule Text_graph = Textutils_kernel.Text_graphmodule Ascii_table = Textutils.Ascii_tablemodule Console = Textutils.Consolemodule Alternating_primary_backup_assignment = Alternating_primary_backup_assignmentmodule Array : sig ... endmodule Atomic_edit = Atomic_editmodule Bin_io_utils = Bin_io_utilsmodule Bitarray = Bitarraymodule Cache = Cachemodule Color_print = Color_printmodule Service_command = Service_commandmodule Csv_writer = Csv_writermodule Date : sig ... endmodule Deprecated_fcommand = Deprecated_fcommandmodule Deprecated_command = Deprecated_commandmodule Deprecated_service_command = Deprecated_service_commandmodule English = Englishmodule Environment = Environmentmodule Documented_match_statement = Documented_match_statementmodule Exception_check = Exception_checkmodule Exn : sig ... endmodule Extra_fields = Extra_fieldsmodule Fd_leak_check = Fd_leak_checkmodule Filename : sig ... endmodule Find = Findmodule Fold_map = Fold_mapmodule Float : sig ... endmodule Float_ref = Float_refmodule Gc : sig ... endmodule Hashtbl : sig ... endmodule Hashtbl2 = Hashtbl2module Hashtbl2_pair = Hashtbl2_pairmodule Int : sig ... endmodule Int32 : sig ... endmodule Int63 : sig ... endmodule Int64 : sig ... endmodule Interval_map = Interval_mapmodule Invocation = Invocationmodule Lazy_sequence = Lazy_sequencemodule Low_level_debug = Low_level_debugmodule Nativeint : sig ... endmodule Number = Numbermodule Thread : sig ... endmodule Timed_function = Timed_functionmodule Lazy_list = Lazy_listmodule Lazy_m = Lazy_mmodule Linebuf = Linebufmodule Linux_ext : sig ... endmodule List : sig ... endmodule List_zipper = List_zippermodule Logger = Loggermodule Memo : sig ... endmodule Multi_map = Multi_mapmodule Net_utils = Net_utilsmodule Packed_array = Packed_arraymodule Packed_map = Packed_mapmodule Flang = Flangmodule Olang = Olangmodule Set_lang = Set_langmodule Pp = Ppmodule Printc = Printcmodule Process = Processmodule Procfs = Procfsmodule Prod_or_test = Prod_or_testmodule Random_selection = Random_selectionmodule Readline = Readlinemodule Result : sig ... endmodule Runtime_blockout_detector = Runtime_blockout_detectormodule Rw_mutex = Rw_mutexmodule Sampler = Samplermodule Search = Search_foomodule Semaphore = Semaphoremodule Sendmail = Sendmailmodule Sexp : sig ... endmodule Shell = Shellmodule Sntp = Sntpmodule String : sig ... endmodule String_zipper = String_zippermodule Sys : sig ... endmodule Sys_utils = Sys_utilsmodule Tcp = Tcpmodule Time : sig ... endmodule Unix : sig ... endmodule Unix_utils = Unix_utilsmodule Update_queue = Update_queue