Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
May 2, 2005, 12:39 pm
rate this thread
Re: How to write string in a file to the next line
On Windows you need \r\n to produce a newline. Most editor is smart
enough to recognize \n, but not Notepad. You used to be able to open a
file in text mode, which turns on automatic translation of \n to \r\n.
But the PHP devs now are discouraging its use and, the last time I
tried, it didn't work.