Did you open the text file through notepad.exe.. If yes then I think that's normal that you just can see a rectangle for which I don't know what the reason is. I've tried that also, try to download notepad++ and there you can see the exact contents of the file.
Indeed "\n" works but it's just that notepad.exe can't interpret it perhaps..
"\n" is just enough to write a linefeed..
Hope that helps..