分类
“使用fso添加文件新行的函数”的ASP编程代码是:
function fsoappline(filename,linecontent)
dim fso,f
set fso = server.createobject("scripting.filesystemobject")
if not fso.fileexists(server.mappath(filename)) then exit function
set f = fso.opentextfile(server.mappath(filename),8,1)
f.write chr(13)&chr(10)&linecontent
f.close
set f = nothing
end function