Re: fwrite????

From: Date: Mon, 20 Aug 2001 18:27:41 +0000
Subject: Re: fwrite????
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63548@lists.php.net to get a copy of this message
Thank you for your time I did not even look at the fopen... DUH.... Sorry about not researching properly... At 11:14 AM 8/20/01 -0700, Anton Stroganov wrote:
when you open the file with fopen(), use the 'a' (writing only) or 'a+' (reading and writing) arguments ie: int fopen ("somefile.txt", "a"); "...
*    'a' - Open for writing only; place the file pointer at the end of the
file.
      If the file does not exist, attempt to create it.
*    'a+' - Open for reading and writing; place the file pointer at the end
      of the file. If the file does not exist, attempt to create it.
..." info from http://www.php.net/manual/en/function.fopen.php ----- Original Message ----- From: Brian C. Doyle <bcdoyle@mindspring.com> To: <php-general@lists.php.net> Sent: Monday, August 20, 2001 11:06 Subject: [PHP] fwrite???? Hello all, Is is possible to just append to the end of a file using fwrite??? Currently I am reading the contents for the file into an array then add to the array what I want and rewrite the file from the array... And well that is just silly... How else would I do this?? -- 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 -- 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 (#63548) next »