注册 登录
编程论坛 ASP技术论坛

[求助]opentextfile用法

wswyyss 发布于 2007-11-21 00:31, 957 次点击

<body>
<% dim a,b
set a=server.createobject("scripting.filesystemobject")
set b=a.opentextfile(server.MapPath("haha.txt"),2)
b.write(hello)

%>


</body>

[此贴子已经被作者于2007-11-21 0:41:30编辑过]

3 回复
#2
wswyyss2007-11-21 00:32

<% dim a,b
set a=server.createobject("scripting.filesystemobject")
set b=a.opentextfile(server.MapPath("haha.txt"),2)
b.write(hello)

%>

#3
wswyyss2007-11-21 00:33

为什么我打开该页报错

#4
寒锋笑2008-06-30 11:50
查看文件是否存在?
1