<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Why can&amp;#39;t I read data greater than 8kb from the sd card?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74129/why-can-t-i-read-data-greater-than-8kb-from-the-sd-card</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Apr 2021 01:39:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74129/why-can-t-i-read-data-greater-than-8kb-from-the-sd-card" /><item><title>RE: Why can't I read data greater than 8kb from the sd card?</title><link>https://devzone.nordicsemi.com/thread/305396?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 01:39:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0586124a-ff38-4217-8040-4c8a164301e6</guid><dc:creator>HasanYilmaz</dc:creator><description>&lt;p&gt;I solved the error. This code was enough to read and send the file. I am sharing it here to help other friends. Good luck with..&lt;pre class="ui-code" data-mode="text"&gt;    FIL fil;        /* File object */
    char line[244]; /* Line buffer */
    FRESULT fr;     /* FatFs return code */

 fr = f_open(&amp;amp;fil, &amp;quot;file.txt&amp;quot;, FA_READ);
    if (fr) return (int)fr;

    /* Read every line and display it */
    while (f_gets(line, sizeof line, &amp;amp;fil)) {
        nrf_delay_ms(5);
        printf(line);
    }

   f_close(&amp;amp;fil);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;You can find the code here: &lt;a href="http://elm-chan.org/fsw/ff/doc/open.html"&gt;elm-chan.org/.../open.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>