<% Set fileObj=Server.CreateObject("Scripting.FileSystemObject") set file1=fileObj.CreateTextFile("e:\web\foreclosedn\htdocs\TextFile.txt") file1.WriteLine("This is what goes to the text file that would be created") file1.WriteLine("This is the second line of the text file") file1.Close set file1=nothing set fileObj=nothing %>