Posted by Pedro Graca on 10/09/26 11:38
Ralph Höglund wrote:
> The \n I write out to an open file does not work
> the second time:
>
> $xmlstr = "<?xml version=\"1.0\"\x3F>\n";
> $songstr = "<songs>\n";
>
> fwrite($handle, "$xmlstr"); //after this I got a new line
> fwrite($handle, "$songstr"); //but not after this
<snip>
in what mode did you fopen the file?
/* open $filename in text mode */
$handle = fopen($filename, "wt");
--
If you're posting through Google read <http://cfaj.freeshell.org/google>
Navigation:
[Reply to this message]
|