I assume that youknpw how to open a connection and a recordset of the data that you want to write to a text file, so we'll skip to the final step..
Using the FSO (file system object collection):
sFullFilePath = 'full path to the text file on the server,
'you can make use of the server.mappath(...) command here
sOutput = 'enter the text that you want to save to the file
Set fs = CreateObject("Scripting.FileSystemObject"
Set fOutput = fs.CreateTextFile(sFullFilePath, True)
fOutput.Write(sOutput)
fOutput.Close
for more help go to the msdn search page and look for help on ASP and FSO:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.