   FILINFO fno;


    printf("Test for 'file.txt'...\n");

<span class="k">#if</span> _USE_LFN
    fno.lfname = 0;
<span class="k">#endif</span>
    fr = f_stat("file.txt", &amp;fno);
    switch (fr) {

    case FR_OK:
        printf("Size: %u\n", fno.fsize);
        printf("Timestamp: %u/%02u/%02u, %02u:%02u\n",
               (fno.fdate &gt;&gt; 9) + 1980, fno.fdate &gt;&gt; 5 &amp; 15, fno.fdate &amp; 31,
               fno.ftime &gt;&gt; 11, fno.ftime &gt;&gt; 5 &amp; 63);
        printf("Attributes: %c