| Prev | Next | HTML Verbs > html.writeFile |
html.writeFile
| Syntax |
html.writeFile (f, adrData, type, creator, creationDate, adrPageTable)
|
| Params |
f is the path to the file you want to created. adrData is the address of the data that should go in the file. type (optional) is the four-character Macintosh file type code. creator (optional) is the four-character Macintosh creator code. creationDate (optional) specifies the creation date for the file. adrPageTable (optional) is the address of the current page table.
|
| Action |
Looks up the fileWriter for the current page, and tells it to write a file.
|
| Returns |
True.
|
| Examples |
html.writeFile ("D:\\Websites\\myFile.html", @s, adrPageTable:html.getPageTableAddress ()) » true
|
| Notes |
Call this verb when you want to write a file while a page is being rendered. This verb should be called from your macros and filters. This verb was designed to make it look like you're working with files on disk -- but the file may not be written to disk, it may be uploaded via ftp or sent to an object database. This verb hides those details from you. Your scripts don't need to know where the file's eventual destination is or how it's getting there. The syntax for this verb is deliberately similar to file.writeWholeFile. On Windows, the type and creator parameters are ignored. The creationDate defaults to the current time when not supplied. This verb only works in the context of the website framework. For more information, see What is html.writeFile?
|
| See Also |
file.writeWholeFile
|
| Prev | Next | HTML Verbs > html.writeFile |