Not getting the formatted text
<p>I'm trying to read a .txt file. but in the textview the text in not formatted. i,e there is no new line in the textview even if i have given the new line. The sentences are continuous. Is it possible to format? the code goes like this</p>

<pre><code>final StringBuffer buffer = new StringBuffer();

    try{
        DataInputStream dataIO= new DataInputStream(getResources().openRawResource(R.raw.chapter1));
        String strLine= null;
        while((strLine = dataIO.readLine())!=null){
            buffer.append(strLine);
        }
        dataIO.close();
    }catch(Exception e){

    }
    TextView tv=(TextView) findViewById(R.id.chapter);
    tv.setText(buffer.toString());


}
</code></pre>
