railing linefeed (<code>\n</code>) character is returned as part of the  
line.</p>
 
  If the read fails, an error of form <code>{file_read_error, Reason}</code>
  will be thrown by the iterator.</p>
<p><b>See also:</b> <a href="file.html#read_line-1">file:read_line/1</a>.</p>

<h3 class="function"><a name="write-2">write/2</a></h3>
<div class="spec">
<p><tt>write(IODevice, Iterator) -&gt; ok | {error, Reason}</tt>
<ul class="definitions"><li><tt>IODevice = <a href="/home/john/Local/kernel/doc/file.html#ty