Pomiń Metoda ASP
![TextStream Object Reference](/images/up.gif)
Pomiń Pomija określoną liczbę znaków podczas czytania pliku TextStream.
gramatyka
TextStreamObject.Skip(numchar)
参数 | 描述 |
---|---|
numchar | 必需的。需要跳过的字符数目。 |
Przykłady
<%
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!
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 Object Reference](/images/up.gif)