How to store data in android?
<p>I'm trying to store some data which I received from my server into a file in my android project. But I'm not able to do that.. I used the following code which I've shown below.. Please help me out someone. Thanks.</p>

<pre><code>String FILENAME = "hello_file";
String string = "hello world!";

FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
fos.write(string.getBytes());
fos.close();
</code></pre>

<p>The error its giving is "Content cannot be resolved to a variable". I imported android.content.. Then its giving an error for all the 3 lines called "Unhandled Exception type FileNotFoundException"
But I have created that file.. The problem is that I'm not knowing in which folder of the project do I keep that file? Can someone please help me out?</p>
