From my iPhone application, I output data from text to file. When you open using Windows Notepad, the data is all on the same line and where the new line should be, there is a block symbol (indicating that it is an unrecognized character or something else). When opened using Windows Wordpad, it displays just fine.
Will there be something wrong in my code? I just output '\ n' when I want a new line.

NOTE. It works great with other editors such as textedit, MS Word on Mac, as well as windows.
objective-c iphone newline text-files
Ankur
source share