Slow responce from the SD card
<p>I am working on application which will read the text file from the SD card and write its contents to other text file.</p>

<p>The implementation goes like this:</p>

<pre><code>   File result = new File("/mnt/sdcard/result.txt");
   result .createNewFile();
   FileWriter resultFileWriter = new FileWriter(result , true);


   File f = new File("/mnt/sdcard/abc.txt");
   BufferedReader mainBufferedReader = 
        new BufferedReader(new FileReader(f));

  while((line = mainBufferedReader.readLine() ) != null)
  {
     lineNo ++

     if(lineNo  &gt;  50 )
     {
          resultFileWriter .append(line);
          resultFileWriter .append("\n");
          resultFileWriter .flush();
     }
  }


  resultFileWriter .close();
  resultFileWriter = null;

  mainBufferedReader .close();
  mainBufferedReader  = null;
</code></pre>

<p>The above code is working properly , but very few times ( 1 outof 20) it is taking much time do the above operation.</p>

<p>I suspect this is because of slow response from the SD card.</p>

<p>Please suggest me generally when there's chance to slow response from SD card.
or please let me know if there's any changes I need to do in my code.</p>

<p>Thanks.</p>
