Re: Generating a new line in a text file
| From: | TD - Sales International Holland B.V. | Date: | Fri, 18 Jan 2002 16:11:47 +0000 |
| Subject: | Re: Generating a new line in a text file | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-81108@lists.php.net to get a copy of this message | ||
On Friday 18 January 2002 17:00, you wrote:
FYI, In windows a newline is usualy made by CRLF (Carriage Return (\r) , Line
Feed (\n)), in linux/unix it's usually just LF (\n)
> Jason Murray wrote:
> >>: 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.
>
> Na, he's posting using MS Outlook so I guess he is using Windows. In
> that case use "\r\n".