« ASP获取页面html源代码MYSQL 常用命令列表 »

asp写文件

function jt(str,fl,id)
path=""
set FileObject = server.createobject("Scripting.FileSystemObject")
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
path= Server.MapPath("/")
File = path&"/"&id&fl&".Html"
If FSO.FileExists(File) = True Then
fso.DeleteFile (File)
End If
if not FileObject.FolderExists(path) then
FileObject.CreateFolder(path)
end if
Set CTF = FSO.CreateTextFile(File,true, False)
CTF.Write str
Set ctf = Nothing
Set FSO = Nothing
end function

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

网站目录

最近发表

最新评论及回复

文章归档

Search

Powered By Z-Blog 1.8 Terminator(beta) Build 71218 Designed by Michael

Copyright 0-9999 subin.org.cn Rights Reserved. 晋ICP备08000685号