asp 写文件

'写文件
Sub WriteToTextFile (FileUrl,byval Str,CharSet)
set fso = Server.CreateObject("Scripting.FileSystemObject")
set file = fso.OpenTextFile(Server.MapPath(FileUrl),2,true) '1读取 2写入 8追加
file.write Str
file.close
set file = nothing
set fso = nothing
End Sub

posted @ 2013-09-21 13:25  宁静.致远  阅读(1246)  评论(0编辑  收藏  举报