Home
TeamSite
Readig and writing to text files from tpl
mickdundee
Gidday All,
In my tpl when a new news item is added I want to add the newsletter name and headline for that article to a text file.
Can I read and write to a text file within a tpl please.
I have successfully used iw ostream to write to a file but how does one read from a text file. Do you just do it using PERL's filehandling.
Cheers
Colin
Find more posts tagged with
Comments
Johnny
G'day Cobber
If you need to write to a file outside of the workarea then yes, use PERL's filehandling routines.
Remember at the end of the day, your tpl is turned into a PERL script so you can do pretty much anything you like using <iw_perl> tags.
John Cuiuli
Consultant
Sydney, Australia