<?xml version="1.0" encoding="windows-1252"?>
<node id="973792" title="Re: running multiple loops" created="2012-06-01 10:47:46" updated="2012-06-01 10:47:46">
<type id="11">
note</type>
<author id="888573">
Eliya</author>
<data>
<field name="doctext">
&lt;blockquote&gt;
&lt;i&gt; It works fine for the first line in file1 &lt;/i&gt;
&lt;/blockquote&gt;
&lt;p&gt; The problem is that once you've read through the files 2 and 3, their file pointers will be at end of file (EOF), so further reads in subsequent iterations of the outer loop return nothing. &lt;/p&gt;
&lt;p&gt; One solution would be to repeatedly [doc://seek] to the beginning of the files.&amp;nbsp; Another solution would be to read the contents of file 2 and 3 into arrays. &lt;/p&gt;</field>
<field name="root_node">
973787</field>
<field name="parent_node">
973787</field>
</data>
</node>
