Forum Moderators: open

Message Too Old, No Replies

how to use Response.Write to update a .html file

         

lindajames

1:17 pm on Jan 21, 2004 (gmt 0)

10+ Year Member



hi,

i have a asp page that currently retrieves data from a database and then displays it like this:

Response.Write strData

instead of displaying the data onscreen i want the data to be written to a .html file. and if there is already data in the html file it should overwrite it all.

can anyone plz tell me how i can do this?

cheers

Birdman

2:06 pm on Jan 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to use the FileSystemObject [w3schools.com].

That URL should get you going in the right direction.