Re: Read and Write
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 38984
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 Kahn-------------------------------------------------------------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 Kahn-------------------------------------------------------------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/
Velma Kahn
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:
Nesting format tags (1997)
BIG PROBLEMS with Checkboxes!!! (1998)
Just a thought (1998)
[returnraw] and form variables (1998)
Solve the Problem, get the code! (2001)
Heads up, cookies *may* be outlawed in Europe (2001)
Why is deleting so slow? (2002)
Email Spam a bit of Hell (2004)
Now you see it now you donīt (1997)
auto-stripping of spaces (1997)
Ken's grep question about renaming files to lowercase (2003)
WC2f3 (1997)
expired beta (1997)
[WebDNA] Friday's.. WIP thread (2009)
The [shownext] limitations (2002)
Call For Entry: Third Annual Business on The Internet (BOTI)Awards (1999)
[WebDNA] random blank results? how come? (2014)
TCPConnect strange behaviour (2004)
Sku numbers (1997)
Signal Raised Error (Part III) (1997)