java - BufferedWriter no new line is printed -
i use:
bw = new bufferedwriter(new filewriter("c:\\users\\myuser\\desktop\\docum.txt")); bw.write("hello, world!\n"); bw.write("hello!);
but printed "hello, world!hello!"
, no newline
being printed. should do? lot
use carriage return
bw.write("\r\n");
Comments
Post a Comment