案例:ASP/ADO案例     状态:不可编辑再运行    进入竖版
 运行结果 
x
 
1
2
<html>
3
<body>
4
<p>这就是文本文件中的文本:</p>
5
<%
6
Set fs=Server.CreateObject("Scripting.FileSystemObject")
7
8
Set f=fs.OpenTextFile(Server.MapPath("/example/aspe/testread.txt"), 1)
9
Response.Write(f.ReadAll)
10
f.Close
11
12
Set f=Nothing
13
Set fs=Nothing
14
%>
15
</body>
16
</html>
17