RE: [PHP] fwrite
| From: | Rick Emery | Date: | Mon, 11 Feb 2002 14:11:55 +0000 |
| Subject: | RE: [PHP] fwrite | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84265@lists.php.net to get a copy of this message | ||
sprintf()
then fwrite()
-----Original Message-----
From: Scott [mailto:scott@scottah.com]
Sent: Monday, February 11, 2002 7:48 AM
To: php-general@lists.php.net
Subject: [PHP] fwrite
Sorry for the simple questions, but I am converting this perl app to php
and one of the things I do is write out a file doing this:
open(NEWQUOTES, ">qiv_export.txt");
Then when I want to write data to it I do this:
printf NEWQUOTES ("%04d%02d%02d%-4s", report_time(), "0001");
Is this possible with fwrite? It would be easier than:
fwrite($exportfile, " ");
fclose($logfile);
and escaping all the double quotes.
Thanks in advance.
-Scott
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php