Error android file contains a path separator
<p>I want save a file in internal folder, but get this error:</p>

<blockquote>
  <p>Error: file contains a path separator  </p>
</blockquote>

<p>Here's my code:</p>

<pre><code>try {
    OutputStreamWriter outputStreamWriter = new OutputStreamWriter(openFileOutput("storage/emulated/0/test2/test2.txt", Context.MODE_APPEND));
    outputStreamWriter.append(data);
    outputStreamWriter.close();
}
</code></pre>