WGA » WGA.File()
copy(WGDocument | TMLContext, attachmentname)
|Usage||Copies filedata from an imput steam or content attachment to the file.|
input stream to read bytes from to be written to the file.
WGDocument | TMLContext
The OpenWGA document to read a given attachment from
The name of a content attachment to copy to the file.
var doc = context("name:home"); WGA.File("export.html").copy(doc, "mail.html"); // exports a content attachment "mail.html" to the file system as file "export.html"