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

ASP SkipLine 方法

asp skipline 方法

textstream 對(duì)象參考手冊(cè) 完整的 textstream 對(duì)象參考手冊(cè)

skipline 方法在讀取 textstream 文件時(shí)跳過一行。

語法

textstreamobject.skipline

實(shí)例

<%
dim fs,f,t,x
set fs=server.createobject("scripting.filesystemobject")
set f=fs.createtextfile("c:\test.txt")
f.writeline("line 1")
f.writeline("line 2")
f.writeline("line 3")
f.close

set t=fs.opentextfile("c:\test.txt",1,false)
t.skipline
x=t.readall
t.close
response.write("output after skipping the first ")
response.write(" line in the file: " & x)
%>

輸出:

output after skipping the first line in the file: line 2
line 3

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