pan class="mi">0</span><span class="p">;</span> <span class="n">i</span> <span class="o">&lt;</span> <span class="n">n</span><span class="p">;</span> <span class="n">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
      <span class="p">...</span>
  <span class="p">}</span>

  <span class="c1">// loop until there are no more lines</span>
  <span class="n">string</span> <span class="n">str</span><span class="p">;</span>
  <span class="k">while</span> <span class="p">(</span>