fwrite appends data to file but wont do a new line...?
| From: | Timmy | Date: | Wed, 07 Nov 2001 00:32:45 +0000 |
| Subject: | fwrite appends data to file but wont do a new line...? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-73658@lists.php.net to get a copy of this message | ||
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)