Internal storage not being written
<p>I'm trying to read from website url then write into device internal storage. Below are my code, the system output can print the line out but there is no file at internal storage. 
Suppose the abc.xml will appear at "/data/data/my-package/abc.xml" but there is nothing... 
Kindly help me on this problem.</p>

<pre><code>    try {
        URL sourceUrl = new URL("mysite.php");
        BufferedReader in = new BufferedReader(
                new InputStreamReader(sourceUrl.openStream()));

        String inputLine;

        OutputStream out = openFileOutput("abc.xml", Context.MODE_PRIVATE);

        while ((inputLine = in.readLine()) != null) {
            System.out.println(inputLine);
                out.write(inputLine.getBytes());
        }
        in.close();
        out.close();
    }
    catch (IOException e) {
        Log.d(LOG_TAG, e + "");
    }
</code></pre>
