set fso = createobject("scripting.filesystemobject") Set f = fso.OpenTextFile("c:\myfile.txt") Response.ContentType = "text/plain" Response.Write f.ReadAll Set f = nothing Set fso = nothing Response.EndYou can use Server.MapPath to get the physical directory where the file is located, if you don't know it:
myfile = Server.MapPath("myfile.txt") 'then use Set f = fso.OpenTextFile(myfile)or, you can simply re-direct the user to your text file, and the browser will open it as text, after which the user can print it:
response.redirect "c:\myfile.txt"
Hope this helps.