fwrite
| From: | Scott | Date: | Mon, 11 Feb 2002 13:47:48 +0000 |
| Subject: | fwrite | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-84263@lists.php.net to get a copy of this message | ||
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
--