This commit is contained in:
c-cube 2022-05-09 14:57:12 +00:00
parent 853bcb8776
commit fb682ec112
2 changed files with 2 additions and 2 deletions

View file

@ -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> &#x00BB; 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 &quot;/tmp/some_file&quot; 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> &#x00BB; 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 &quot;/tmp/some_file&quot; read_lines_l);;</code></pre><ul><li>transfer one file into another:</li></ul><pre><code># CCIO.(
with_in &quot;/tmp/input&quot; with_in &quot;/tmp/input&quot;
(fun ic -&gt; (fun ic -&gt;
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