ID:58701277
大小:33.50 KB
页数:13页
时间:2020-10-04
5、lsethenResponse.Write"
6、--------'函数名称:ReadTextFile'作用:利用AdoDb.Stream对象来读取文本文件'参数:文件相对路径,:文件编码FunctionReadFromTextFile()'函数dimstrsetstm=server.CreateObject("adodb.stream")stm.Type=2'指定或返回的数据类型,stm.mode=3'指定打开模式,现在为可以读写模式,类似于word的只读或锁定功能stm.charset=stm.openstm.loadfrom()str=stm.readtextReadFromTextEndFunction'------
7、-----------------------------------------------------------------------'函数名称:WriteToTextFile'作用:利用AdoDb.Stream对象来写入文本文件subWriteToText)'方法setstm=server.CreateObject("adodb.stream")stm.Type=2stm.mode=3stm.charset=stm.openstm.WriteTextstrstm.SaveTo(),2stm.f
此文档下载收益归作者所有