Determine File Exists using getFileStreamPath--sorta working
<p>I am trying to determine if a file exists in my app folder on the sdcard. I check for the folder existence first and handle that just fine. Next I want to see if the file exists so I tried the following but got the "contains a path seperator"</p>

<pre><code>File file = getBaseContext().getFileStreamPath(ChildFolder + "/LiftData.xml");
</code></pre>

<p>ChildFolder is the correct path. I set it earlier and you can see it correctly in the debug perspective. If I use just the file name it does not see the file and creates it everytime.</p>

<pre><code>File file = getBaseContext().getFileStreamPath("LiftData.xml");
</code></pre>

<p>I suspect this is because without any path info it is looking for the file in the root. I could set the base context but would that work and is it proper / good practice?</p>

<p>I'm not finding any good examples when I ask Google for help so I apologize for bothering you again to help this Java noob.</p>

<p>JB</p>
