mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
update doc
This commit is contained in:
parent
8f5fc7334d
commit
eda9b08c1d
1 changed files with 3 additions and 2 deletions
|
|
@ -47,9 +47,10 @@ Examples:
|
||||||
# CCIO.(
|
# CCIO.(
|
||||||
with_in "/tmp/input"
|
with_in "/tmp/input"
|
||||||
(fun ic ->
|
(fun ic ->
|
||||||
with_out ~flags:[Open_creat] ~mode:0o644 "/tmp/output"
|
let chunks = read_chunks ic in
|
||||||
|
with_out ~flags:[Open_creat; Open_wronly] ~mode:0o644 "/tmp/output"
|
||||||
(fun oc ->
|
(fun oc ->
|
||||||
Seq.chunks 512 ic |> Seq.to_output oc
|
write_gen oc chunks
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
) ;;
|
) ;;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue