Skip 方法在读取 TextStream 文件时跳过指定的字符数目。
TextStreamObject.Skip(numchar)
参数 | 描述 |
---|---|
numchar | 必需的。需要跳过的字符数目。 |
<%
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!