RE: [PHP] Re: fwrite appends data to file but wont do a new line. ..?

From: Date: Wed, 07 Nov 2001 22:15:23 +0000
Subject: RE: [PHP] Re: fwrite appends data to file but wont do a new line. ..?
Groups: php.general 
Request: Send a blank email to php-general+get-73816@lists.php.net to get a copy of this message
instead of adding "\n" use "\r\n" that's the windows way of doing new lines -----Original Message----- From: Timmy [mailto:mattwire@swt.edu] Sent: Thursday, November 08, 2001 8:47 AM To: php-general@lists.php.net Subject: [PHP] Re: fwrite appends data to file but wont do a new line...? 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) > > > > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#73816) next »