how to read html content from assets folder in android
<pre><code>try {


    File f = new File( "file:///android_asset/[2011]011TAXMANN.COM00167(PATNA)")    ;


        FileInputStream fis= new FileInputStream(f);
        System.out.println("_______YOUR HTML CONTENT CODE IS BELLOW WILL BE PRINTED IN 2 SECOND _______");
        Thread.sleep(2000);
         int ch;
        while((ch=fis.read())!=-1)
        {
        fileContent=fileContent+(char)ch;                 // here i stored the content of .Html file in  fileContent variable

        }
        System.out.print(fileContent);

        //}
    } catch (FileNotFoundException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (InterruptedException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }
</code></pre>

<p>This is my code. I want to read html content from asstes folder my file is available in asstes folder But it gives exception <code>FileNotFoundException</code>. So plz any one tell me how to read html content from asstes folder in android?</p>

<p>File f = new File( "file:///android_asset/[2011]011TAXMANN.COM00167(PATNA)")  ;
when i debug  f gives=   file:/android_asset/[2011]011TAXMANN.COM00167(PATNA)</p>

<p>plz tell me how to get corrct directory and where i m doing wrong it shud me coming file:///android_asset/[2011]011TAXMANN.COM00167(PATNA)</p>
