mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 11:15:31 -05:00
deploy: e59cc68c24
This commit is contained in:
parent
853bcb8776
commit
fb682ec112
2 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CCIO (containers.CCIO)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../index.html">containers</a> » CCIO</nav><header class="odoc-preamble"><h1>Module <code><span>CCIO</span></code></h1><p>1 IO Utils</p><p>Simple utilities to deal with basic Input/Output tasks in a resource-safe way. For advanced IO tasks, the user is advised to use something like Lwt or Async, that are far more comprehensive.</p><p>Examples:</p><ul><li>obtain the list of lines of a file:</li></ul><pre><code># let l = CCIO.(with_in "/tmp/some_file" read_lines_l);;</code></pre><ul><li>transfer one file into another:</li></ul><pre><code># CCIO.(
|
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>CCIO (containers.CCIO)</title><link rel="stylesheet" href="../../odoc.css"/><meta charset="utf-8"/><meta name="generator" content="odoc 2.1.0"/><meta name="viewport" content="width=device-width,initial-scale=1.0"/><script src="../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body class="odoc"><nav class="odoc-nav"><a href="../index.html">Up</a> – <a href="../index.html">containers</a> » CCIO</nav><header class="odoc-preamble"><h1>Module <code><span>CCIO</span></code></h1><p>IO Utils</p><p>Simple utilities to deal with basic Input/Output tasks in a resource-safe way. For advanced IO tasks, the user is advised to use something like Lwt or Async, that are far more comprehensive.</p><p>Examples:</p><ul><li>obtain the list of lines of a file:</li></ul><pre><code># let l = CCIO.(with_in "/tmp/some_file" read_lines_l);;</code></pre><ul><li>transfer one file into another:</li></ul><pre><code># CCIO.(
|
||||||
with_in "/tmp/input"
|
with_in "/tmp/input"
|
||||||
(fun ic ->
|
(fun ic ->
|
||||||
let chunks = read_chunks_gen ic in
|
let chunks = read_chunks_gen ic in
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue