<htmlxmlns="http://www.w3.org/1999/xhtml"><head><title>LineReader (infer.IBase.LineReader)</title><linkrel="stylesheet"href="../../../odoc.css"/><metacharset="utf-8"/><metaname="generator"content="odoc 1.5.1"/><metaname="viewport"content="width=device-width,initial-scale=1.0"/><scriptsrc="../../../highlight.pack.js"></script><script>hljs.initHighlightingOnLoad();</script></head><body><divclass="content"><header><nav><ahref="../index.html">Up</a>–<ahref="../../index.html">infer</a>»<ahref="../index.html">IBase</a>» LineReader</nav><h1>Module <code>IBase.LineReader</code></h1></header><aside><p>Module to read specific lines from files. The data from any file will stay in memory until the handle is collected by the gc</p></aside><dl><dtclass="spec type"id="type-t"><ahref="#type-t"class="anchor"></a><code><spanclass="keyword">type</span> t</code></dt></dl><dl><dtclass="spec value"id="val-create"><ahref="#val-create"class="anchor"></a><code><spanclass="keyword">val</span> create : unit <span>-></span><ahref="index.html#type-t">t</a></code></dt><dtclass="spec value"id="val-from_loc"><ahref="#val-from_loc"class="anchor"></a><code><spanclass="keyword">val</span> from_loc : <ahref="index.html#type-t">t</a><span>-></span><ahref="../Location/index.html#type-t">Location.t</a><span>-></span><span>string option</span></code></dt><dd><p>get the line from a location looking for the copy of the file in the results dir</p></dd></dl><dl><dtclass="spec value"id="val-iteri"><ahref="#val-iteri"class="anchor"></a><code><spanclass="keyword">val</span> iteri : <ahref="index.html#type-t">t</a><span>-></span><ahref="../SourceFile/index.html#type-t">SourceFile.t</a><span>-></span><span>f:<span>(int <span>-></span> string <span>-></span> unit)</span></span><span>-></span> unit</code></dt><dd><p>iterate on the lines of the file, with line numbers</p></dd></dl></div></body></html>