9_9.asp
来自「《asp网页设计》作者沈才梁源代码,共十章」· ASP 代码 · 共 18 行
ASP
18 行
<%
Dim Path, fso
'取出目前执行程序所在的实际路径及文件名称
path=Request.ServerVariables("PATH_TRANSLATED")
Path = Mid(Path , 1, InstrRev(Path,"\")) '取出目前执行程序所在的实际路径(除去文件名)
filename = Path & "Test1.txt"
Set fso = CreateObject("Scripting.FileSystemObject")
Const ForReading = 1, ForWriting = 2, ForAppending = 8
Set fs = fso.OpenTextFile(filename, ForAppending, True)
Response.Write "文本文件的追加:<Br>"
Strings = "这是追加的内容!"
fs.WriteLine Strings
Response.Write "写入的文字:" & Strings & "<Br>"
fs.Close
Set fs = Nothing
Set fso = Nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?