Check if file exists on SD card on Android
<p>I want to check if a text file exists on the SD card. The file name is mytextfile.txt. Below is the code:</p>

<pre><code>FileOutputStream fos = openFileOutput(&amp;quot;sdcard/mytextfile.txt&amp;quot;, MODE_WORLD_WRITEABLE);
</code></pre>

<p>How can I check whether this file exists?</p>
