writing to sdcard
<p>i have a very small problem. I am writing a file to sdcard. I'l show you two code, one code works and other doesn't. It looks like this:
First one,</p>

<pre><code>new FileOutputStream("/sdcard/HelloWorld.txt")
</code></pre>

<p>This works fine and creates a HelloWorld.txt file in sdcard.</p>

<p>Now second one,</p>

<pre><code>  new FileOutputStream(android.os.Environment.getExternalStorageDirectory()+java.io.File.separator + "filetest" + java.io.File.separator + "HelloWorld.txt")
</code></pre>

<p>This throws error "<code>/mnt/sdcard/filetest/HelloWorld.txt (No such file or directory)</code>".
I want to know why because i have mnt/sdcard path on my device, is it that it cannot find filetest folder if yes then isn't it supposed to create filetest folder if its not created before.</p>

<p>Thanks.</p>
