无为清净楼资源网 Design By www.qnjia.com
方法一:createtextfile生成文件方法  
复制代码 代码如下:
<%function WriteToFile(FileName,FileContent)  
set fso=server.createobject("scripting.filesystemobject")  
set fp=fso.createtextfile(server.mappath(FileName),,True)  
fp.write(FileContent)  
end function%>  

方法二:ADODB.Stream生成文件方法 
复制代码 代码如下:
<%Function WriteToFile(FileName,FileContent)  
Set ccObjStream = Server.CreateObject("ADODB.Stream")  
With ccObjStream  
.Type = 2  
.Mode = 3  
.Open  
.Charset = "utf-8"  
.Position = ccObjStream.Size  
.WriteText FileContent  
.SaveToFile FileName,2  
.Close  
End With  
End Function%>
标签:
用ASP生成UTF-8网页文件的两种方法

无为清净楼资源网 Design By www.qnjia.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
无为清净楼资源网 Design By www.qnjia.com

更新日志

2024年09月20日