File in local storage on Java, Android
<p>I serialization object into new file in local storage by this mean:</p>

<pre><code>ObjectOutputStream output=new ObjectOutputStream(openFileOutput("settings.dat", Context.MODE_PRIVATE));
output.writeObject(this);
output.close();
</code></pre>

<p>But in another function I must check file for exist:</p>

<pre><code>File file=new File("settings.dat");
if (file.exists()) Toast.makeText(this, "yes", Toast.LENGTH_LONG).show();
</code></pre>

<p>file.exists() returne false always. Help me please. </p>
