ASP SkipLine 方法

asp skipline 方法

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

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

語(yǔ)法

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)文章
亚洲国产精品第一区二区,久久免费视频77,99V久久综合狠狠综合久久,国产免费久久九九免费视频