 android failed to show result
<p>Below code i used to crate a file in sdcard. but it not giving any valid out put. showing only the hello world...Where the "file created" message will be displayed and where the file will be stored?</p>

<p>package com.read;</p>

<p>import java.io.FileOutputStream;</p>

<p>import android.app.Activity;
import android.content.Context;
import android.os.Bundle;</p>

<p>public class read extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);</p>

<pre><code>    String FILENAME = "hello_file";
    String string = "hello world!";
    try{
    FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);
    fos.write(string.getBytes());
    fos.close();
    }catch(Exception e){}

    System.out.println("File created");

}
</code></pre>

<p>}</p>
