fso使用readall来获取文本的内容

作者:袖梨 2022-06-30

<%
Set MyFileObject=Server.CreateObject("Scripting.FileSystemObject")
path=server.mappath("temp/test.htm")
Set MyTextFile=MyFileObject.OpenTextFile(path)
str=MyTextFile.readall
MyTextFile.Close
Set MyFileObject=Nothing
response.write str
%>

相关文章

精彩推荐