<html>
<head>
<title>无标题文档</title>
</head>
<body>
<%
Set objFileSys=Server.CreateObject("Scripting.FileSystemObject"
Set objStream=objFileSys.OpenTextFile("Server.MapPath("/ocean/data12.txt"
)
上面的虚拟路径换成下面的路径就显示正常,请问
("Server.MapPath("/ocean/data12.txt"
) 这句代码有错吗
("C:\Documents and Settings\ocean\My Documents\asp\data12.txt"
While not objStream.AtEndOfLine
Response.Write(objStream.Read(1))
Wend
%>
</body>
</html>