views:

61

answers:

1

My code is pretty standard.. sReport contains the text I would like output to the text file, and it contains several "\n" line breaks that render fine in a textview, but in the text file they're non-existent. There must be something easy i'm missing..

    try {
        FileOutputStream fOut = new FileOutputStream(sDir + sFile);
        //write  
        fOut.write( sReport.getBytes() );
        // Close output stream
        fOut.flush();
        fOut.close();
    } catch (IOException  e) {
        e.printStackTrace();
    }
A: 

please review this and keep in mind Android is Linux based.

riotopsys