69pao国产精品视频-久久精品一区二区二三区-精品国产精品亚洲一本大道-99国产综合一区久久

ASP Write 方法

asp write 方法

textstream 對象參考手冊 完整的 textstream 對象參考手冊

write 方法向 textstream 文件寫入指定的文本。

注意:此方法向 textstream 文件寫入的文本在每個字符串之間不帶有空格或換行。

語法

textstreamobject.write(text)

參數(shù) 描述
text 必需的。寫入文件的文本。

實例

<%
dim fs,f
set fs=server.createobject("scripting.filesystemobject")
set f=fs.createtextfile("c:\test.txt",true)
f.write("hello world!")
f.write("how are you today?")
f.close
set f=nothing
set fs=nothing
%>

在執(zhí)行上面的代碼后,文件 test.txt 如下所示:

hello world!how are you today?

textstream 對象參考手冊 完整的 textstream 對象參考手冊
相關(guān)文章