Re: Generating a new line in a text file
| From: | Martin Wickman | Date: | Fri, 18 Jan 2002 16:00:52 +0000 |
| Subject: | Re: Generating a new line in a text file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81100@lists.php.net to get a copy of this message | ||
Jason Murray wrote:
Na, he's posting using MS Outlook so I guess he is using Windows. In that case use "\r\n".: Don't know why it's got everyone else stumped. : : "\n" is the new line character. Make sure you use it in "" and : not in ''. : : Jason Unfortunately, that doesn't work either, it changes the \n that appeared at the end of the new line to a single black block. It does not put the next quote onto a new line.Ah, so you're opening the file in something that doesn't understand newlines and prefers line feeds, then. In that case you'll want to use \r instead of \n.