Re: Read and Write
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38986
interpreted = N
texte = >Velma Kahn:>>I need to read some tpl files and save them (the resulting HTML) to >>static HTML files. How might I do this?>>Glenn Busbin:>>Use Writefile to write the info, not copy it, to the static files. >>It should solve both probs.>>John Peacock:>>[writefile] is your friend here.>>Thank you. I am missing some key piece of information. Suppose I >have a table with two fields, an input filename (which is a URL to a >tpl file), and an output filename (which is a URL to an htm file). >I know how to do a search, and a founditems loop. Within that >founditems loop, what would the code look like to read the input >file (processing it through WebCatalog, but hopefully not displaying >it), and write the output file with [writefile]? Perhaps a line of >sample code would make a lightbulb go off here. :)>>Velma KahnVelma,Try this:[writefile file=[htmlFile]&secure=f][include file=[tplfile]][/writefile]Does that help?-- Sam LewisSamLewis.comTel: 626-852-0956 Fax: 916-404-5698-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
>Velma Kahn:>>I need to read some tpl files and save them (the resulting HTML) to >>static HTML files. How might I do this?>>Glenn Busbin:>>Use Writefile to write the info, not copy it, to the static files. >>It should solve both probs.>>John Peacock:>>[writefile] is your friend here.>>Thank you. I am missing some key piece of information. Suppose I >have a table with two fields, an input filename (which is a URL to a >tpl file), and an output filename (which is a URL to an htm file). >I know how to do a search, and a founditems loop. Within that >founditems loop, what would the code look like to read the input >file (processing it through WebCatalog, but hopefully not displaying >it), and write the output file with [writefile]? Perhaps a line of >sample code would make a lightbulb go off here. :)>>Velma KahnVelma,Try this:[writefile file=[htmlFile]&secure=f][include file=[tplfile]][/writefile]Does that help?-- Sam LewisSamLewis.comTel: 626-852-0956 Fax: 916-404-5698-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Sam Lewis
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
WC Database Format (1997)
search results not sorted with 'cl' (1998)
WebCat2b13MacPlugIn - [include] (1997)
[append] problem (1997)
WebCat2 - many [carts] on one template page? (1997)
WebCat2 Append problem (B14Macacgi) (1997)
Multiple fields on 1 input (1997)
SiteGuard Use Question (1997)
Am I going senile? (Price recalc based on quantity) (1997)
FAX orders (1996)
SSL, WebSTAR, WebCatalog (1998)
Problem with [isFile] [isFolder] (wc 3.0.4, iis 4) (1999)
Problems with ^ could be solved with [REPLACE CHARACTERS] (1997)
[quantity] solved (1997)
[WebDNA] Error: Can't open order file. Ignoring [OrderFile] (2011)
Fwd: FW: Returned mail: you are not authorized to releasequeueson this server (2000)
DON'T use old cart file! (1997)
Multi-Row Tables from a search. (1997)
question: search return in order (1997)
Group Updates (1998)