内容显示页
 
类别:ASP+VBS | 浏览(283) | 2007-5-29 21:47:44 | 关闭广告

<%
'FilePath:保存路径
'str:文件内容
'fCharset:文件编码 如GB2312

Function StreamWriteFile(FilePath, Str, fCharset)
    adSaveCreateOverWrite =2
    adSaveCreateNotExist =1
OnErrorResumeNext
Set stm = Server.CreateObject("Adodb.Stream")
    stm.Charset = fCharset
    stm.Open
    stm.WriteText Str
    stm.SaveToFile FilePath, adSaveCreateOverWrite
    If Err.Number<>0Then
        Err.Clear
        StreamWriteFile =False
Else
        StreamWriteFile =True
EndIf
OnErrorGoTo0
EndFunction
%>

引用本页地址:http://www.yongfa365.com/item/e1c806a16059116a.html
 
 
相关链接
 
网友评论:
姓名: 记住我
网址:
邮箱:
内容:
验证码:  验证码图片看不清? 换张图试试
 
   
 
 
文章分类
 
   

Power by :柳永法(yongfa365)'Blog | Model by :hibaidu | CSS by:众网友 | 京ICP备07011491号  QQ:64049027  E-mail:64049027qq.com

本空间赞助商:北京中科兴联信息技术有限公司