title: Read/write file to internal private storage
body: <p>I'm porting the application from Symbian/iPhone to Android, part of which is saving some data into file. I used the <strong>FileOutputStream</strong> to save the file into private folder <strong>/data/data/package_name/files</strong>:</p>
  
  <pre><code>FileOutputStream fos = iContext.openFileOutput( IDS_LIST_FILE_NAME, Context.MODE_PRIVATE ); 
  fos.write( data.getBytes() ); 
  fos.close();
  </code></pre>
  
  <p>Now I am looking for a way how to load them. I am using the <strong>FileInputStream</strong>, but it allows me to read the file byte by byte, which is pretty inefficient:</p>
  
  <pre><code>int ch;
  StringBuffer fileContent = new StringBuffer("");
  FileInputStream fis = iContext.openFileInput( IDS_LIST_FILE_NAME );
  while( (ch = fis.read()) != -1)
    fileContent.append((char)ch);
  String data = new String(fileContent);
  </code></pre>
  
  <p>So my question is how to read the file using better way? </p>