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