< %
Set fso=Server.CreateObject("Scripting.FileSystemObject")
str="asp生成word文件举例欢迎光临智睿软件"
filename= "zhirui.doc"
Set act = fso.CreateTextFile(server.mappath(filename), true)
act.WriteLine(str)
act.close
Set fso=Nothing
response.write "生成Word文件成功"
% >