\n Doesnt work in notepad

I have a problem. I need to write a text file, which I did. However, in the file I also need the carriage returns / new line feeds. So, when I write the string, I include "\n". When I open it in wordpad or Microsoft Word (I have windows XP and a PC), it works fine. Then, when I open it in Notepad, the carriage returns show up as little boxes. I also tried using ASCII character codes instead of "\n", but I got the same results. Why isn't it working and what should I do and can I fix this?

- Gibi

[514 byte] By [@Gibi@a] at [2007-10-2 13:58:35]
# 1

Because Notepad only recognizes DOS's (and Windows is DOS-based) version of newlines - a carriage return followed by a linefeed character. These are also represented by \r\n, or hex 0D0A. The other products also recognize the Linux version of \n, which is why they display correctly.

You should use System.getProperty("line.separator") to get the value that is valid for the system Java is currently running on.

ChuckBinga at 2007-7-13 12:03:56 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
Same thing happens. Consider, though, that the notepad, wordpad, and MS Word programs are all on the same computer and operating system. Any other ideas?
@Gibi@a at 2007-7-13 12:03:56 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...