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 Kahn Velma,Try this:[writefile file=[htmlFile]&secure=f][include file=[tplfile]][/writefile]Does that help? -- Sam LewisSamLewis.com Tel: 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:

    
  1. Re: Read and Write (Velma Kahn 2001)
  2. Re: Read and Write (Sam Lewis 2001)
  3. Re: Read and Write (Dale Therio 2001)
  4. Re: Read and Write (Velma Kahn 2001)
  5. Re: Read and Write (John Peacock 2001)
  6. Re: Read and Write (Glenn Busbin 2001)
  7. Read and Write (Velma Kahn 2001)
  8. Re: Read and Write (Anup Setty 2001)
  9. Re: read and write you own cookies with webcat (Sandra L. Pitner 1997)
  10. Re: read and write you own cookies with webcat (Kenneth Grome 1997)
  11. Re: read and write you own cookies with webcat (Olin 1997)
  12. Re: read and write you own cookies with webcat (Kenneth Grome 1997)
  13. Re: read and write you own cookies with webcat (Sandra L. Pitner 1997)
  14. Re: read and write you own cookies with webcat (Olin 1997)
  15. Re: read and write you own cookies with webcat (Sandra L. Pitner 1997)
  16. Re: read and write you own cookies with webcat (Grant Hulbert 1997)
  17. Re: read and write you own cookies with webcat (Sandra L. Pitner 1997)
  18. read and write you own cookies with webcat (Olin 1997)
>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 Velma,Try this:[writefile file=[htmlFile]&secure=f][include file=[tplfile]][/writefile]Does that help? -- Sam LewisSamLewis.com Tel: 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:

Emailer (WebCat2) (1997) Less than or equal to........ (1997) Need help with emailer- 2 issues (1997) Re:quit command on NT (1997) Problems with [Applescript] (1997) createfolder permissions (2003) [OT] Appropriate Signature??? (2003) Linux Install Question (2000) [WebDNA] [createdate] displays today's date on Ubuntu 14.04 / WebDNA Server 8.? (2014) Been meaning to ask... (1997) WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) Summary layout (1997) Execute Applescript (1997) Location of Browser Info.txt file (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) CloseDataBase vs CommitDataBase (2007) Search for dates greater than [date] (1997) WebDNA for Dummies (2007) Appending current [date] to a database (1997) random in arizona (2003)