代码没有错。
set fso=Server.CreateObject("scripting.filesystemobject")
set tstm=fso.opentextfile("d:\1.txt",forwriting,true)
cnt="now is "&now
tstm.write(cnt)
tstm.close
set tstm=nothing
set fso=nothing
代码没有错。 set fso=Server.CreateObject("scripting.filesystemobject") set tstm=fso.opentextfile("d:\1.txt",forwriting,true) cnt="now is "&now tstm.write(cnt) tstm.close set tstm=nothing set fso=nothing
set fso=Server.CreateObject("scripting.filesystemobject")
set tstm=fso.opentextfile("d:\1.txt",forwriting,true)
cnt="now is "&now
tstm.write(cnt)
tstm.close
set tstm=nothing
set fso=nothing