android bufferedwriter error
<p>I'm working on an android app where I need to create a file and write/read on it using bufferedwrite and bufferedread. The file is declared in the activity as follows:</p>

<pre><code>String string = "string";
File file = new File(this.getFilesDir(), string);
</code></pre>

<p>When I try to write to the file using this code, however:</p>

<pre><code>    BufferedWriter out = new BufferedWriter(new FileWriter(new File(file)));
    out.write("I am a line of text written in" + file);
    out.close();
</code></pre>

<p>I keep getting a "constructer File(File) is undefined" error. I believe the error has to do with the file declaration, but I'm not sure why. </p>

<p>Any help is greatly appreciated.</p>
