Stream response in a file

45 Views Asked by At

I want to stream the response of the actual page in a file.

This is what I do for creating the file :

set fso=server.CreateObject("Scripting.FileSystemObject")
fic= session("DIRECTORY_BASE") & "/data/download/temp.xls"
If fso.FileExists(fic) Then fso.deletefile(fic)
Set objFile = fso.OpenTextFile(fic, 2, True) 
pageContent = ?
objFile.Write pageContent

How can i get the content of the current page and have my pagecontent variable ?

0

There are 0 best solutions below