saving a string array to a file error
<p>How to format directory in android project folder as <code>jvm</code> can't see <code>datass.txt</code>  or sometimes <code>logcat</code> says read only file...(i am putting datass.txt in main project root) </p>

<p>i am passing an array of strings and want to save it to a file datass.txt so i can retrieve data when internet is not connected   </p>

<pre><code>public void FileWrite(String[]  temp) throws IOException{
        File m = new File("datass.txt");
     final String[] descs = temp ;
     DataOutputStream out = new DataOutputStream(new
                BufferedOutputStream(
                  new FileOutputStream(m)));


     for (int i = 0; i &lt; 31; i ++) {

            out.writeUTF(descs[i]);

        }
}
</code></pre>
