    while (rc == FR_OK &amp;&amp; !f_eof(&fil)) {

        <span class="c">/* any other processes... */</span>

        <span class="c">/* Fill output stream periodicaly or on-demand */</span>
        rc = f_forward(&amp;fil, out_stream, 1000, &amp;dmy);
    }

    <span class="c">/* Close the file and return */</span>
    f_close(&amp;fil);
    return rc;
}
</pre>
</div>


<div class="para ref">
<h4>See Also</h4>
<p><tt><a href="open.html">f_open</a>, <a href="gets.html">fgets</a>, <a href="write.html">f_w