asp 写入文件到服务器 |
AA=request.Form("p")
set objfso = Server.CreateObject("Scripting.FileSystemObject")
set htmout = objfso.CreateTextFile(server.mappath("55.txt"))
htmout.write AA
htmout.close
set htmout=nothing
set objfso=nothing
set fso=Server.CreateObject ("Scripting.FileSystemObject")
fpath=server.MapPath ("5.txt")
if fso.FileExists(fpath) then
response.write "文件存在"
response.End()
else
response.write "文件不存在"
end if
response.write "写入失败"
|
点击:1840 发布者:xinyou 发布时间:2015-11-28 23:50:45 | |
|
|
|