Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
printing the same output to files
bozo
I know of this hack:
$output = qq|insert your html code|;
<iw_ostream file="1">
<iw_value .. ($output) />
</iw_ostream>
<iw_ostream file="2">
<iw_value ..($output)/>
</iw_ostream>
But can you just do it with buffers and ostreams?
The only way I can think of doing it is with buffers, but it needs to iterate and you can't print it out to a file at different times as there is no append mode. ie
<iw_ostream buffer="general">
</iw_ostream>
<iw_ostream file="1">
text
</iw_ostream>
<iw_ostream buffer="general" file="1"/>
John
Find more posts tagged with
Comments
JeremyH
What is the end result that you are trying to achieve? Would it be easier just to resort to perl and write it out to both places?