c">/* Open a text file */</span>
    fr = <em>f_open</em>(&amp;fil, "message.txt", FA_READ);
    if (fr) return (int)fr;

    <span class="c">/* Read every line and display it */</span>
    while (f_gets(line, sizeof line, &amp;fil)) {
        printf(line);
    }

    <span class="c">/* Close the file */</span>
    f_close(&amp;fil);

    return 0;
}
</pre>
<pre>
<span class="c">/* Copy a file "file.bin" on the drive 1 to drive 0 */</span>

int main (void)
{
    FATFS fs0, fs1;      <span class="c">/* Work 