Re: fwrite appends data to file but wont do a new line...?
| From: | Timmy | Date: | Wed, 07 Nov 2001 21:47:08 +0000 |
| Subject: | Re: fwrite appends data to file but wont do a new line...? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73810@lists.php.net to get a copy of this message | ||
thanks for the help but when i open the txt file, it puts in a box where the
carriage return should be. maybe its just notepad??
"Galkov Vladimir" <galkov@kraft-s.php.net> wrote in message
news:20011107054033.13200.qmail@pb1.pair.com...
> just add "\n" to end of every inserted string..... ;-)
>
>
> "Timmy" <mattwire@swt.edu> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ
> ÓÌÅÄÕÀÝÅÅ:
> news:20011107002350.40896.qmail@pb1.pair.com...
> > I'm trying to add data to a txt file. I use:
> >
> > $thefile = fopen("URL", "r+");
> > fwrite ($thefile, $inputed_data);
> >
> >
> > it puts the new data at the top of the file like it should only problem
is
> > that it doesn't allow me to put it on a new line or insert a <return>
> >
> > so instead of:
> >
> > new line of text
> > old line of text
> >
> > i get:
> >
> > new line of textold ling of text
> >
> > anyone know what to do?
> > thanks.
> > (student of computer science)
> >
> >
>
>