`sig
val lines_of : string -> string BatEnum.t
val write_lines : string -> string BatEnum.t -> unit
val size_of : string -> int
val size_of_big : string -> Int64.t
type permission = BatFile.permission
val default_permission : permission
val user_read : permission
val user_write : permission
val user_exec : permission
val group_read : permission
val group_write : permission
val group_exec : permission
val other_read : permission
val other_write : permission
val other_exec : permission
val perm : permission list -> permission
val unix_perm : int -> permission
val set_permissions : string -> permission -> unit
val chmod : string -> permission -> unit
type open_in_flag = [ `create | `excl | `mmap | `nonblock | `text ]
val open_in :
?mode:open_in_flag list -> ?perm:permission -> string -> BatInnerIO.input
val with_file_in :
?mode:open_in_flag list ->
?perm:permission -> string -> (BatInnerIO.input -> 'a) -> 'a
type open_out_flag =
[ `append | `create | `excl | `nonblock | `text | `trunc ]
val open_out :
?mode:open_out_flag list ->
?perm:permission -> string -> unit BatInnerIO.output
val with_file_out :
?mode:open_out_flag list ->
?perm:permission -> string -> (unit BatInnerIO.output -> 'a) -> 'a
type open_temporary_out_flag =
[ `append
| `create
| `delete_on_exit
| `excl
| `nonblock
| `text
| `trunc ]
val open_temporary_out :
?mode:open_temporary_out_flag list ->
?prefix:string ->
?suffix:string ->
?temp_dir:string -> unit -> unit BatInnerIO.output * string
val with_temporary_out :
?mode:open_temporary_out_flag list ->
?prefix:string ->
?suffix:string ->
?temp_dir:string -> (unit BatInnerIO.output -> string -> 'a) -> 'a
end`