ASP读取一个文本文件,然后在特定的字符后面写入一段字符串的示例代码:
set fso=CreateObject("Scripting.FileSystemObject")
set f = fso.OpenTextFile(server.MapPath(文件路径))
if not f.atendofstream then
content=f.ReadAll
else
content=""
end if
f.close
set f=nothing
内容保存在content中.
NEjHTML5中文学习网 - HTML5先行者学习网NEjHTML5中文学习网 - HTML5先行者学习网