let do_echo texts dest_path = with_output_file dest_path begin fun oc -> List.iter (output_string oc) texts end