ASP读取文本并在特定的字符后面写入一段字符串

http://www.corange.cn/archives/2008/10/1855.html

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中.

你可能感兴趣的:(html,F#,asp)