title: Android read in large String from file
body: <p>In my application, when it loads up, it makes a web call which retrieves a JSON string. I want to store this JSON string to the phone so the application won't crash if the user loses connection. JSON string is required to set the text of the application. So I am doing this</p>
  
  <pre><code>    File myDir = new File(getFilesDir().getAbsolutePath());
  
                  FileWriter fw = new FileWriter(myDir + "/jsonMain.txt");
                  fw.write(sJsonMain);
                  fw.close();
  </code></pre>
  
  <p>And then to retrieve it I am doing this</p>
  
  <pre><code>    BufferedReader br = new BufferedReader(new FileReader(
                              myDir + "/jsonMain.txt"));
                      sStoredJSON = br.readLine();
  </code></pre>
  
  <p>It works fine with other JSON strings, however it is not with the Large JSON string. I checked the log and it says this</p>
  
  <blockquote>
    <p>04-26 10:00:44.511: I/global(893): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.</p>
  </blockquote>
  
  <p>Could someone please tell me how else I can read in a large string like this?</p>
  
  <p>Thanks in advance!!</p>