日期:2014-05-17  浏览次数:20899 次

一个关于文件读写的问题,急
<HTML>
<HEAD> age   count </head>
<body   bgcolor= "#ffffff ">
<%

Set   fs=CreateObject( "Scripting.FileSystemObject ")
Set   thisfile=fs.OpenTextFile(server.mappath( "/bbs/test/create.txt "),1)
counter=0
do   while   not   thisfile.AtEndOfStream
counter=counter+1
thisline=thisfile.readline
response.write   thisline& " <br> "
loop
thsifile.Close
set   thisfile=nothing
set   fs=nothing
%>

</body>
</HTML>

该文件已经存在,上述代码执行就出错.
请大侠帮助!!

------解决方案--------------------
thsifile.Close
set thisfile=nothing

thisfile.close