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

ASP Skip 方法

asp skip 方法

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

skip 方法在讀取 textstream 文件時(shí)跳過(guò)指定數(shù)目的字符。

語(yǔ)法

textstreamobject.skip(numchar)

參數(shù) 描述
numchar 必需的。需要跳過(guò)的字符數(shù)目。

實(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)
t.skip(7)
x=t.readall
t.close
response.write("the output after skipping some characters: " & x)
%>

輸出:

the output after skipping some characters: orld!

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