The following tutorial and code can be used to create a text file(or any file) in the web server using asp
<%
'Declare variables for the File System Object and the File to be accessed.
Dim objFSO, objTextFile
'Create an instance of the the File System Object and assign it to objFSO.
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Open the file
Set objTextFile = objFSO.CreateTextFile(Server.MapPath("textfile.txt"))
'Writing to file "textfile.txt".
objTextFile.WriteLine "This text is in the file ""textfile.txt""!" %>
objTextFile.WriteLine "The file was written on " & Date() & " at " & Time() & "."
'Close the file.
objTextFile.Close
'Release reference to the text file.
Set objTextFile = Nothing
'Release reference to the File System Object.
Set objFSO = Nothing
%>