Newline for BufferedWriter?
Posted on 2007-10-15
To generate a simple text file report, I'm using:
FileWriter outFile = new FileWriter(outFileName, false);
BufferedWriter outBufnew BufferedWriter(outFile);
And then to write I line, I do:
outBuf.write(s + "\n");
However, when I open the file in NotePad, it doesn't recognize the eol character ("\n"). Is there a simple solution for this? Is there a better choice than BufferedWriter to generate a simple text file report?