package ez_file

  1. Overview
  2. Docs
Easy file manipulation (read_file, write_file, etc.)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.2.0.tar.gz
sha256=e7b32ebead0f0be76b96b8bd0f826f2a115850b56c6d1129656060d5eff23c97
md5=ce2f4ab5bcb432c552d525dc48a3bdf9

doc/src/ez_file/fileOS.ml.html

Source file fileOS.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(**************************************************************************)
(*                                                                        *)
(*   Typerex Libraries                                                    *)
(*                                                                        *)
(*   Copyright 2011-2017 OCamlPro SAS                                     *)
(*                                                                        *)
(*   All rights reserved.  This file is distributed under the terms of    *)
(*   the GNU Lesser General Public License version 2.1, with the          *)
(*   special exception on linking described in the file LICENSE.          *)
(*                                                                        *)
(**************************************************************************)

open EzCompat

let win32 = (Sys.os_type = "Win32")
let dir_separator = if win32 then '\\' else '/'
let path_separator = if win32 then ';' else ':'
let dir_separator_string = String.make 1 dir_separator
let line_separator = if win32 then "\r\n" else "\n"

let default_buffer_size = if win32 then 32768 else 65536