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

ASP ReadAll 方法

asp readall 方法

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

readall 方法可讀取整個(gè) textstream 文件,并以字符串返回結(jié)果。

注意:此方法不適合大型文件(會(huì)浪費(fèi)內(nèi)存資源)。

語法

textstreamobject.readall

實(shí)例

<%
dim fs,f,t,x
set fs=server.createobject("scripting.filesystemobject")
set f=fs.createtextfile("c:\test.txt"")
f.write("hello world!")
f.close

set t=fs.opentextfile("c:\test.txt"",1,false)
x=t.readall
t.close
response.write("the text in the file is: " & x)
%>

輸出:

the text in the file is: hello world!

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